Skip to main content

Cogneris API Reference

The Cogneris API exposes the platform's document intelligence engine (classification, extraction, zero-shot field discovery, cropping and splitting) through a small, focused set of HTTP endpoints. It is the same engine that powers the playground inside the Cogneris platform — wrapped behind API-key authentication so you can call it from your own systems.

Bank CAN — API: Cogneris document APIs: classify, extract and face match in one call Watch on YouTube

Base URL​

Pick the host for the region your tenant lives in:

https://api-us.cogneris.ai # United States
https://api-eu.cogneris.ai # Europe

All endpoints documented in this section live under that host. Every request is HTTPS-only.

Authentication​

Every endpoint requires an API key issued from the Cogneris platform. The key is sent on the standard Authorization header as a Bearer token:

Authorization: Bearer xtkt_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
  • The key always starts with the prefix xtkt_live_.
  • The platform stores only a hash of the key — the plaintext value is shown to you once, at creation time. Store it in a secrets manager.
  • A key can be revoked at any time from the platform. Revoked keys return 401 Unauthorized.
  • The key is bound to your tenant; no extra x-tenant header is needed.

See Getting Started for the step-by-step flow to generate a key.

Available Endpoints​

All endpoints are POST and accept multipart/form-data request bodies.

EndpointPurpose
POST /Document/classifierClassifies one or more documents into the document types registered for your tenant.
POST /Document/extractionExtracts the structured fields from a single document.
POST /Document/zero-shotDiscovers candidate fields from a document with no prior template.
POST /Document/cropReturns the cropped/normalized version of a document image.
POST /Document/splitSplits a long PDF into the logical sub-documents it contains.
POST /Document/facematchCompares a selfie against the photo on one or more identity documents.

Limits & file rules​

  • Accepted file types: .pdf, .png, .jpg, .jpeg, .tiff, .tif, .bmp, .doc, .docx.
  • Maximum file size: 10 MB per file on every endpoint except /Document/split, which accepts up to 500 MB.
  • Rate limit: 50 requests per API key per fixed 1-minute window (HTTP 429 Too Many Requests when exceeded). The window resets on the minute rather than refilling gradually.

Response envelope​

Responses are always wrapped in the standard Cogneris service envelope:

{
"data": { /* endpoint-specific payload */ },
"meta": {
"httpStatusCode": 200,
"messages": []
},
"hasErrors": false
}

When hasErrors is true, meta.messages contains human-readable error descriptions and data is null.