Skip to main content

Verifications

Create Verification

POST /verifications

Creates a new verification session.

Request:

curl -X POST https://api.dev.valydar.com/verifications \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"client_reference": "user_123",
"checks": ["identity", "document", "face_match", "liveness"]
}'

Response:

{
"id": "vry_a1b2c3d4e5f6",
"status": "pending",
"client_reference": "user_123",
"redirect_url": ""
}

Get Verification

GET /verifications/{id}

Returns the current state and all completed checks.

Request:

curl https://api.dev.valydar.com/verifications/{id} \
-H "Authorization: Bearer YOUR_API_KEY"

Response:

{
"id": "vry_a1b2c3d4e5f6",
"status": "completed",
"client_reference": "user_123",
"checks_results": {
"document": {
"passed": true,
"details": {
"document_type": "passport",
"mrz": { ... }
}
},
"liveness": {
"passed": true,
"score": 0.87,
"checks": [...]
}
},
"created_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:30:05Z"
}
FieldTypeDescription
idstringVerification ID (format: vry_<uuid>)
statusstringpending, completed, or failed
client_referencestringYour reference ID
checks_resultsobjectResults keyed by check name
created_atstringISO 8601 timestamp
completed_atstringISO 8601 timestamp (null if not finished)

List Verifications

GET /verifications

Returns a paginated list of verifications for the authenticated client.

Query Parameters:

ParameterTypeDefaultDescription
limitinteger20Max results (1-100)
offsetinteger0Pagination offset
statusstringFilter by status

Request:

curl "https://api.dev.valydar.com/verifications?limit=10&status=completed" \
-H "Authorization: Bearer YOUR_API_KEY"

Response:

[
{
"id": "vry_a1b2c3d4e5f6",
"status": "completed",
"client_reference": "user_123",
"created_at": "2024-01-15T10:30:00Z"
}
]