cURL
curl --request POST \ --url https://public-api.cambio-ai.com/extract_key_value \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "file_content": "<string>", "file_type": "pdf", "extract_args": { "extract_instruction": {} } }'
{ "json": {}, "pageCount": 123 }
This API endpoint extracts key-value pairs from the uploaded file and returns the content in json 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
The key-value extraction instructions.
Show child attributes
Key-value extracted successfully
The extracted key-value pairs in json format.
The number of pages processed.