Classify document type (Async)
post
Authorizations
X-Api-KeystringRequired
Body
contentstring · nullableOptionalDefault:
Base64-encoded file content
nullcontextstring · nullableOptionalDefault:
Additional context to guide the classification
nullcustom_document_typesstring[] · nullableOptionalDefault:
Custom document types to classify against. If provided, classification is restricted to these types.
nullcustom_document_types_urlstring · nullableOptionalDefault:
URL to a JSON file containing custom document types. Merged with custom_document_types if both provided.
nullfile_urlstring · nullableOptionalDefault:
Public URL to file
nullmodelstring · enum · nullableOptionalDefault:
LLM model for classification. Must be one of the supported models.
gemini-3Example: gemini-3Possible values: use_custom_types_onlyboolean · nullableOptionalDefault:
If true, only custom_document_types are valid classification results. Requires custom_document_types or custom_document_types_url to be provided.
falseResponses
200
OK
application/json
messagestring · nullableOptionalDefault:
Status message
nullstatusstring · enumOptionalDefault:
successPossible values: 400
Bad Request
application/json
401
Authentication required — the X-Api-Key header is missing or invalid.
500
Returned instead of 400 when the request body is missing or invalid. Known defect — see the API Reference.
post/classify
Last updated

