Skip to main content
Upload Document
curl --request POST \
  --url https://{api_endpoint}/api/v1/documents/{doc_id}/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
{
  "task_id": "<string>",
  "task_name": "<string>",
  "status": "unknown",
  "task_args": {},
  "result": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

doc_id
string
required

Query Parameters

extraction_strategy
enum<string>
Available options:
express,
standard,
high_quality

Body

multipart/form-data
file
file
required

Response

Successful Response

task_id
string
required
task_name
string | null
status
enum<string>
Available options:
unknown,
started,
completed,
failed
task_args
object | null
result
string | null