Skip to main content
GET
Get a document's extraction

Authorizations

Authorization
string
header
required

API key created in the console. Scopes: kyc:extract, kyc:verify, kyc:eid; kyb:onboard, kyb:ice; statements:read; webhooks:manage; requests:read, requests:write; bank:read, bank:write (Growth plan, enabled per workspace by Sahl); registry:read; cases:read; scoring:read, scoring:write; policy:read, policy:write; usage:read. The Sandbox specimen routes, GET /v1/partner/me and GET /v1/partner/errors need any valid key.

Headers

X-Sahl-Environment
string | null

sandbox (default) or production. Same meaning as the environment parameter; if both are sent they must agree.

Path Parameters

case_id
string<uuid>
required
document_id
string<uuid>
required

Query Parameters

environment
string | null

sandbox or production (X-Sahl-Environment also works). Sandbox by default.

Response

OK

document_id
string<uuid>
required

Sahl's document id.

status
string
required

Processing status of the document.

filename
string
required

The uploaded file's name.

content_type
string
required

The uploaded file's media type.

file_size
integer
required

Size in bytes.

source
string
required

How it arrived: api, dashboard, partner, ...

created_at
string<date-time>
required

When it was uploaded.

case_id
string<uuid>
required

The case it is filed on.

file_url
string
required

Path of the original file (same API key).

doc_type
string | null

Document type (final, detected, else the hint).

page_count
integer | null

Pages, when known.

confidence
number | null

Overall extraction confidence (0-1).

extraction
PartnerExtractionSummary · object | null

Extraction summary; null if not read yet.

integrity
PartnerIntegrity · object | null

Document integrity signals, when inspected.

fields
PartnerExtractedField · object[]

Extracted fields.

checks
PartnerCaseCheck · object[]

Per-document checks, when run.

warnings
PartnerDocumentWarning · object[]

Pages or reads that did not go through.