Submits a document to the verification pipeline for automated AI analysis followed by optional human review. The platform extracts content, computes integrity hashes, runs anomaly detection, and produces a verification determination. Documents are processed asynchronously. The response includes aDocumentation Index
Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt
Use this file to discover all available pages before exploring further.
document_id that you can use to poll for results via the Get Document endpoint, or subscribe to the document.verified webhook event.
The platform supports PDF, images (PNG, JPEG, TIFF), and structured data files (JSON, XML). Maximum file size is 50 MB after base64 encoding.
Authentication
RequiresX-API-Key header or Bearer JWT token. Tenant-scoped via X-Tenant-ID.
Request Body
The identifier of the agent submitting the document for verification. Must be
registered and active within the tenant. Format:
maip-agent:ULID.Classification of the document. Helps the AI pipeline select the appropriate
extraction model. Common values: -
contract — legal contracts and
agreements - invoice — financial invoices - certificate — certificates,
licenses, or credentials - report — compliance or audit reports -
identity — identity documents (passport, driver’s license) - other —
unclassified documentsOriginal file name with extension. Used for display and to infer content type
when not explicitly set.
Client-computed SHA-256 hex digest of the original file bytes (before base64
encoding). If provided, the platform verifies the hash matches the uploaded
content. Recommended for integrity assurance.
The document content as a base64-encoded string. Maximum 50 MB after encoding.
Response
Unique identifier for the document verification record. Format:
maip-doc:ULID.Initial processing status. Always
processing on submission.The platform-computed SHA-256 hex digest of the uploaded document bytes.
ISO 8601 timestamp of when the document was submitted.
Processing Pipeline
Upload and Hash
Document is received, decoded, and SHA-256 hashed. If
document_hash was
provided, it is validated against the computed hash.AI Extraction
Content is extracted using OCR and document understanding models. Key fields
are identified based on
document_type.Anomaly Detection
AI models scan for signs of tampering, forgery, inconsistencies, and
metadata anomalies.
Human Review (optional)
If confidence is below threshold or the document type requires it, the
document is routed to a human reviewer.

