POST
/
extract_key_value

Authorizations

x-api-key
string
headerrequired

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
extract_args
object
required

The key-value extraction instructions.

Response

200 - application/json
json
object

The extracted key-value pairs in json format.

pageCount
integer

The number of pages processed.