cURL
curl --request POST \ --url https://public-api.cambio-ai.com/parse \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "file_content": "<string>", "file_type": "pdf" }'
{ "markdown": {}, "pageCount": 123 }
This API endpoint parses the uploaded file and returns the content in markdown format.
Your API key.
The base64 encoded content of the file to be parsed.
The type of the file. Supported values are 'pdf' and 'docx'.
pdf
docx
File parsed successfully
The parsed content in markdown format.
The number of pages in the result.