Get started
API keys and scopes
Send your key as a bearer token on every request:
Header
Authorization: Bearer ftk_live_••••••••••••••••
Test and live keys#
- Test and live keys.
ftk_test_…keys work only against the sandbox, with its own data.ftk_live_…keys act on your real registries. - Shown once. A key’s secret is displayed only when it’s created. Store it in your secrets manager; FaceTrust can’t show it again. Rotate or revoke keys from the console at any time.
- Scopes. Each key carries only the scopes you give it. A call outside them returns
403 forbidden_scope. - IP allowlist. Optionally restrict a key to IPv4 addresses or CIDR ranges. Calls from anywhere else return
403 ip_not_allowed.
Server-to-server only
Never put an API key in a browser, mobile app or kiosk front-end. Call the API from your backend. A leaked key can enroll and verify faces as your institution.
Scopes#
| Scope | Allows | Account types |
|---|---|---|
| account:read | Read your account, modules and limits | All |
| registry:read | Read registries and their schema | All |
| registry:write | Edit registries and schema | All |
| profiles:read | Read people | All |
| profiles:write | Create, update, revoke and bulk-import people | All |
| enrollment:write | Send enrollment links and enroll faces | All |
| verify | Verify faces against your registry | All |
| exams:read | Read exams, eligibility, rosters and referrals | School |
| exams:write | Create exams and replace eligibility lists | School |
| admissions:write | Admit/refer students, resolve referrals, reset check-ins | School, Event |
| attendance:read | Read attendance | Company |
| checkins:read | Read check-ins | Event |
| logs:read | Read and export scan logs | All |
| webhooks:manage | Manage webhook endpoints | All |
Key presets#
When you create a key, start from the preset closest to what you’re building:
| Preset | For | Scopes |
|---|---|---|
| Exam admission app School | Your own hall-entry system: verify faces, read today’s exams, admit or refer. | account:readregistry:readprofiles:readverifyexams:readadmissions:write |
| HR sync Company | Nightly sync of staff from your HR system, plus attendance for payroll. | account:readregistry:readprofiles:readprofiles:writeenrollment:writeattendance:read |
| Ticketing kiosk Event | Gate kiosks that verify guests and record check-ins. | account:readregistry:readprofiles:readverifycheckins:read |
| Turnstile / access control Company | Your own turnstiles verify staff and record clock-ins. | account:readregistry:readverify |
| Read-only reporting School, Company, Event | Dashboards and BI: read everything, change nothing. | account:readregistry:readprofiles:readexams:readattendance:readcheckins:readlogs:read |