1

2

3

# 1. Your backend mints a short-lived token for the browser (API key stays on your server)
curl -X POST https://YOUR-FACEID-HOST/api/client-tokens \
  -H "X-API-Key: $FACEID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"scopes": ["liveness"], "ttlS": 600}'

# → {"token": "fct_…", "expiresAt": …}   pass the token to your page
POST /api/match
POST /api/detect
POST /api/persons
POST /api/persons/{id}/faces
POST /api/persons/{id}/verify
POST /api/search
POST /api/groups
POST /api/client-tokens
POST /api/liveness/sessions
GET /api/liveness/sessions/{id}
GET /api/audit