POST
/
classify
/
async
curl --request POST \
  --url https://api.sensible.so/v0/classify/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: image/jpeg'
{
  "id": "49f844ba-4429-4974-919d-2f1bdfa95f7c",
  "content_type": "application/pdf",
  "download_link": "https://sensible-so-document-type-bucket-dev-us-west-2.s3.us-west-2.amazonaws.com/c024cd1c-5f33-4a82-b2ea-2c807e44988b/CLASSIFICATION/49f844ba-4429-4974-919d-2f1bdfa95f7c.json?AWSAccessKeyId=REST_REDACTED"
}

Authorizations

Authorization
string
header
required

Sensible uses API keys to authenticate requests. Keep your API keys secure and do not share them publicly accessible areas such as GitHub, client-side code, etc. Authentication to the API is performed via Bearer Authentication. Provide your API key as the bearer auth value.

Body

The body is of type file.

Response

200
application/json
Link to download the classification response. Poll the link until it returns a non-error response.
id
string

ID for this classification response.

content_type
string

File format of the document for which you requested classification.

Poll until the download URL returns a non-error response. Links to a JSON download that contains the same response as from the synchronous Classify endpoint request.