Core concepts
How every endpoint behaves
Environments#
Live: https://api.facetrustai.com/v1. Sandbox: https://sandbox.api.facetrustai.com/v1. Paths in this reference are relative to these.
Idempotency#
Every POST that creates or records something accepts an Idempotency-Key header (a UUID you generate). Retrying with the same key returns the original result, so a network retry never causes a double admission, clock-in or enrollment. Reusing a key with a different body returns 409 idempotency_conflict.
Pagination#
List endpoints take ?page= (from 1) and &pageSize= (up to 100, default 25) and return { total, page, pageSize, entries }.
Data formats#
Times are ISO 8601 in UTC. IDs are UUIDs unless shown otherwise. Phone numbers are E.164 (+2348030000000). Dates in fields are YYYY-MM-DD.
Images#
Multipart image field, JPEG or PNG, exactly one face, 5 MB at most (2 MB or less recommended). Send a live capture, not a photo of a photo; liveness is checked on every image.
Devices#
Label your own devices with terminalId (“Hall A turnstile 2”) so they appear in logs the way FaceTrust desks do. API scans are logged with channel: "api".
Errors#
Errors always look like { "error", "message", "requestId" }, plus fields for validation errors. Quote the requestId when you contact support.