Endpoints (Beta)
Submit PDF for Parsing
Given a PDF, this API helps to get structured extraction of data in the document. The API returns a task_id that can be used to query the status of the parse job.
POST
/
parse
/
parsepdf
Headers
api-subscription-key
string
default: Your subscription key
Body
multipart/form-data
pdf
file
requiredPDF file to parse. This needs to be passed as a form input if using multipart/form-data
page_intervals
string
requiredUse the following JSON format to specify a list of page intervals to process. Pass the JSON encoded string. [ {"start_page": 1, "end_page": 1}, {"start_page": 2, "end_page": 2} ]
sarvam_mode
string | null
default: largeMode of parsing. Use 'large' for high accuracy and 'small' for low cost
Response
200 - application/json
task_id
string
requiredThe task ID of the submitted job. The task ID can be used to query the status of the task.