Tools

Classify the pages of a document into classes you define.

This endpoint accepts PDFs, images, and other supported file types (either as a document upload or document_url) together with a list of classes, and returns a classification result for each page.

For EU users, use this endpoint:

https://api.va.eu-west-1.landing.ai/v1/ade/classify.

post/v1/ade/classify

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body multipart/form-data

documentstring binary nullable

A file to be classified. Either this parameter or the document_url parameter must be provided.

document_urlstring nullable

The URL of the document to be classified. Either this parameter or the document parameter must be provided.

modelstring nullable

Classification model version. Defaults to the latest.

Response

Successful Response

Changes