Skip to content

Identity verification (KYC)

Onfido mock API

Onfido API v3.6: applicants, document and live photo metadata, checks with derived reports, workflow runs, webhook registration and HMAC-signed webhooks.

At a glance

Operations
85
Stateful operations
27
Stateful resources
6
Webhook events
4
Vendor API version
v3.6
Verification
Spec-verified

How it works

Use Onfido without calling Onfido Ltd (Entrust)

authorization: Token token=api_sandbox_ExampleToken0123456789

State

Resources that remember

Writes persist per caller, so a create followed by a read returns what you created.

ResourceOperations
Applicants6
Documents and live photos6
Checks4
Reports3
Workflow runs3
Webhooks5

Webhooks

Events your handlers can receive

Deliveries are signed with the hmac scheme, so your verification code runs unchanged.

Coverage

85 operations

27 of them are stateful. The largest groups:

GroupOperations
Other operations58
Applicants6
Documents and live photos6
Webhooks5
Checks4
Reports3

Verification

Spec-verified

Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.

1 operations cannot be checked against the specification.

Source and limits

License, source and limits

Each collection holds up to 1 MiB per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). State is isolated by the Authorization header. Stateful: applicants (create, get, update, list with page/per_page and include_deleted, delete schedules deletion by setting delete_at, restore), documents and live photos (multipart upload stores metadata only: file name, content type and size; request bodies over 1 MiB are rejected with 413), checks and their reports, workflow runs and webhook registrations; every other operation answers a schema-valid stateless sample. The sandbox outcome is always clear (no decline trigger values are published): a check is in_progress for 1.5 s after creation and then complete/clear, its reports are awaiting_data and then complete/clear, a workflow run is processing and then approved; the status is derived when read. Sandbox checks are never paused (only the seeded paused check can be resumed and any other resume answers 422), reports of a check are cancelled only while they have a stored non-complete status (a report that completed by age can still be cancelled), workflow run listing ignores the status and sort filters, and the check.started, check.completed, report.completed (first report only) and workflow_run.completed events are sent for each check or workflow run. Webhooks registered with POST /webhooks are delivered to their url, signed with the hex HMAC-SHA256 of the raw body keyed by the webhook token in the X-SHA2-Signature header; the token is returned only when the webhook is created and the seeded webhook is disabled. Error bodies use the Onfido error envelope with the documented types (resource_not_found, authorization_error, validation_error) and an empty message because the API reference publishes none. Lists of applicants/documents/checks/reports/webhooks are wrapped objects while workflow runs are a bare array, as in the spec. The pinned spec leaves find_report/list_reports (ambiguous oneOf over 21 report variants) and find_addresses (inconsistent required property) without a satisfiable response schema, so those operations are listed as unverifiable. A seeded applicant uses the all-zero UUID so schema-sampled request bodies resolve to it.

MaxoPerf is not affiliated with, endorsed by, or sponsored by Onfido Ltd (Entrust). Onfido is a trademark of its owner.