POST
/
parse
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
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required

Your API key.

Body

application/json
file_content
string
required

The base64 encoded content of the file to be parsed.

file_type
enum<string>
required

The type of the file. Supported values are 'pdf' and 'docx'.

Available options:
pdf,
docx

Response

200
application/json
File parsed successfully
markdown
object

The parsed content in markdown format.

pageCount
integer

The number of pages in the result.