POST
/
parse
curl --request POST \
  --url https://api.contextual.ai/v1/parse \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'output_type=[
  "markdown"
]'
{
  "job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
raw_file
file
required

The file to be parsed. The file type must be PDF, DOC / DOCX, PPT / PPTX.

output_type
enum<string>[]

The desired output format of the parsed file. Currently we only support Markdown.

Available options:
markdown

Response

200
application/json
Successful Response

/parse response object.

job_id
string
required

Unique ID of the parse job