POST
/
v1
/
async
/
submit
/
document
/
partition
curl --request POST \
  --url https://api.aryn.cloud/v1/async/submit/document/partition \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'options={
  "selected_pages": [
    123
  ],
  "extract_images": false,
  "extract_image_format": "ppm",
  "extract_table_structure": false,
  "table_extraction_options": {
    "include_additional_text": false,
    "model_selection": "pixels > 500 -> deformable_detr; table_transformer"
  },
  "summarize_images": false,
  "text_mode": "standard",
  "use_ocr": true,
  "text_extraction_options": {
    "ocr_text_mode": "vision",
    "remove_line_breaks": true
  },
  "ocr_language": "english",
  "threshold": "auto",
  "chunking_options": {
    "strategy": "context_rich",
    "tokenizer": "openai_tokenizer",
    "tokenizer_options": {
      "model_name": "text-embedding-3-small"
    },
    "max_tokens": 123,
    "merge_across_pages": true
  },
  "output_format": "json",
  "output_label_options": {
    "title_candidate_elements": [
      "<string>"
    ],
    "promote_title": false,
    "orientation_correction": false
  },
  "markdown_options": {
    "include_pagenum": false,
    "include_headers": false,
    "include_footers": false
  }
}'
{
  "task_id": "aryn:t-47gpd3604e5tz79z1jro5fc"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

User-Agent
string | null
X-Aryn-Webhook
string

Body

multipart/form-data
file
file
required
options
object

Response

202
application/json
Successful Response
task_id
string

The ID of the async task.

Example:

"aryn:t-47gpd3604e5tz79z1jro5fc"