Create a new verification session
Sessions
Create a new verification session
POST
Create a new verification session
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Optional URL to redirect the user to after the verification session is completed. Must use https:// (http:// is only accepted for localhost in development).
Maximum string length:
2048Optional map of requested share fields keyed by claim key. Each entry must include required (boolean) and reason (non-empty string, max 200).
Optional webhook endpoint ID or endpoint ID list to target for this session. When omitted, events fan out to every enabled subscribed endpoint.
Required string length:
1 - 128Pattern:
^[A-Za-z0-9_-]+$Response
Successful operation. Returns the newly created verification session.
Example:
{
"id": "vs_mza7vecksrtyfw193ekcvl5vnws3bt1lz96buu3iw7zidckf8dga2zx2echb3t16",
"status": "created",
"failure_code": null,
"nfc_tries_used": 0,
"liveness_tries_used": 0,
"contract_version": 1,
"share_fields": {
"document_type_code": {
"required": false,
"reason": "Needed to know the document type code",
"source": "rc"
},
"date_of_birth": {
"required": true,
"reason": "Needed to verify age eligibility",
"source": "rc"
},
"kayle_document_id": {
"required": true,
"reason": "Sharing \"Kayle Document ID\"",
"source": "default"
}
},
"redirect_url": "https://example.com/redirect",
"webhook_endpoint_id": null,
"verification_url": "https://verify.kayle.id/vs_mza7vecksrtyfw193ekcvl5vnws3bt1lz96buu3iw7zidckf8dga2zx2echb3t16",
"expires_at": "2025-01-01T00:00:00Z",
"completed_at": null,
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}