Skip to main content
POST
/
v1
/
async
/
submit
/
storage
/
docsets
/
{docset_id}
/
docs
Submit Document for Async Add Doc
curl --request POST \
  --url https://api.aryn.cloud/v1/async/submit/storage/docsets/{docset_id}/docs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form 'file_url=<string>' \
  --form 'options=<string>' \
  --form file.0='@example-file' \
  --form options.0='@example-file'
{
  "task_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

docset_id
string
required

The unique identifier of the docset to which to add the doc.

Body

multipart/form-data
file
file | null

The file to add to the Aryn platform.

file_url
string | null
options
file | null

DocParse options to use during partitioning

Response

Successful Response

task_id
string

The ID of the async task.