Classify document by type

Classify a document into one of the document types you defined in your Sensible account. For more information, see Classifying documents by type.
To retrieve document's classification, poll the download_link in this endpoint's response until it returns a non-error response.

Use this endpoint:

  • In an extraction workflow. For example, determine which documents to extract prior to calling a Sensible extraction endpoint.
  • Outside an extraction workflow. For example, determine where to route each document or to label each document in a system of record.

To post the document bytes, specify the non-encoded document bytes as the entire request body,and specify the Content-Type header, for example,"application/pdf" or "image/jpeg".

For supported file size and types, see Supported file types.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Comma-delimited list of document types Sensible uses to classify the document. If you don't specify this, Sensible uses all the document types you define in your account.

Body Params

Supported file types.

non-encoded document bytes as the entire request body

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/pdf

Generated from available request content types

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain