Skip to main content
POST
Create a verification session

Authorizations

X-API-Key
string
header
required

Your workspace public key (pk_test_… or pk_live_…).

X-HMAC-Signature
string
header
required

HMAC-SHA256, hex-encoded, keyed with a workspace secret key, of "{X-Timestamp}." followed by the canonical request (or of the canonical request alone, accepted for workspaces that do not require X-Timestamp). See API authentication.

X-Timestamp
string
header
required

Current Unix time in seconds, signed as "{X-Timestamp}." + the canonical request. Recommended on every signed request and required when the workspace requires it; accepted within 300 seconds of the server clock, and a timestamped request other than GET is accepted once.

Headers

Idempotency-Key
string

Optional, up to 255 printable ASCII characters (a UUID is a good choice). A retry with the same key and the same request within 24 hours returns the first response, with the header Idempotent-Replayed: true, instead of creating a second resource. 5xx responses are not kept.

Body

application/json
callback_url
string<uri> | null

Where the person's browser is sent after the final screen, an http or https URL. Ignored unless the request is HMAC-signed.

Maximum string length: 2048
external_id
string | null

Your identifier for the person. Ignored unless the request is HMAC-signed: the public key alone cannot tie a session to your user.

Maximum string length: 255
external_metadata
object | null

Free-form data returned in the API and webhooks. Accepted without a signature, so treat it as client-supplied.

metadata
object | null

Free-form data kept on the session and not returned to integrations.

reference_verification_id
string<uuid> | null

Turns the session into a face re-verification: the ID of an approved, document-based verification of the same workspace. The person takes a selfie only, and it is compared with the face of that verification. The request must be HMAC-signed. Not billed.

Response

The verification session, with the url the person opens to complete it.

id
string
required
external_id
string | null
required
external_metadata
object | null
required
redirect_url
string | null
required
status
string
required
reason
string | null
required
duplicate_check
object
required
erasure
object | null
required
created_at
string
required
updated_at
string
required
url
string
required
reauth
object