Sign-up forms
Create a sign-up form
/registries/{registryId}/signup-formsComing soonPublish a public registration link (url in the response). The person fills in their details, then a live face scan submits the registration: liveness is checked, a face already registered is refused, and only then is the person created with their face template. lockedFields are set by the form, never by the person, and access controls who may register.
curl -X POST "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "Student registration", "title": "2026/2027 student registration", "access": "open", "courseSelection": true, "primaryKeyMode": "ask", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": null, "cover": null, "accent": "#E0563F", "footer": "Questions? help@example.com" } }'
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Idempotency-Key': crypto.randomUUID(), 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "Student registration", "title": "2026/2027 student registration", "access": "open", "courseSelection": true, "primaryKeyMode": "ask", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": null, "cover": null, "accent": "#E0563F", "footer": "Questions? help@example.com" } }), }); const data = await res.json();
import os, uuid, requests res = requests.post( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())}, json={ "name": "Student registration", "title": "2026/2027 student registration", "access": "open", "courseSelection": True, "primaryKeyMode": "ask", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": None, "cover": None, "accent": "#E0563F", "footer": "Questions? help@example.com" } }, timeout=15, ) res.raise_for_status() data = res.json()
curl -X POST "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "Staff onboarding", "title": "New staff: face enrollment", "access": "code", "accessCode": "K7QW9MPX", "primaryKeyMode": "ask", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": null, "cover": null, "accent": "#E0563F", "footer": "Questions? help@example.com" } }'
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Idempotency-Key': crypto.randomUUID(), 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "Staff onboarding", "title": "New staff: face enrollment", "access": "code", "accessCode": "K7QW9MPX", "primaryKeyMode": "ask", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": null, "cover": null, "accent": "#E0563F", "footer": "Questions? help@example.com" } }), }); const data = await res.json();
import os, uuid, requests res = requests.post( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())}, json={ "name": "Staff onboarding", "title": "New staff: face enrollment", "access": "code", "accessCode": "K7QW9MPX", "primaryKeyMode": "ask", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": None, "cover": None, "accent": "#E0563F", "footer": "Questions? help@example.com" } }, timeout=15, ) res.raise_for_status() data = res.json()
curl -X POST "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "VIP guests", "title": "Builders Summit: VIP registration", "access": "allowlist", "allowlist": [ "ada.obi@example.com", "kunle@example.com" ], "lockedFields": { "pass_type": "VIP" }, "primaryKeyMode": "generate", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": null, "cover": null, "accent": "#E0563F", "footer": "Questions? help@example.com" } }'
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Idempotency-Key': crypto.randomUUID(), 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "VIP guests", "title": "Builders Summit: VIP registration", "access": "allowlist", "allowlist": [ "ada.obi@example.com", "kunle@example.com" ], "lockedFields": { "pass_type": "VIP" }, "primaryKeyMode": "generate", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": null, "cover": null, "accent": "#E0563F", "footer": "Questions? help@example.com" } }), }); const data = await res.json();
import os, uuid, requests res = requests.post( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/signup-forms", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())}, json={ "name": "VIP guests", "title": "Builders Summit: VIP registration", "access": "allowlist", "allowlist": [ "ada.obi@example.com", "kunle@example.com" ], "lockedFields": { "pass_type": "VIP" }, "primaryKeyMode": "generate", "collectEmail": "required", "collectPhone": "optional", "branding": { "logo": None, "cover": None, "accent": "#E0563F", "footer": "Questions? help@example.com" } }, timeout=15, ) res.raise_for_status() data = res.json()
{
"id": "sf_4k2m9q",
"registryId": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"url": "https://join.facetrustai.com/9fc9dc8b499e490f8db00d94e5e5509d",
"name": "Student registration",
"status": "live",
"access": "open",
"lockedFields": {},
"primaryKeyMode": "ask",
"courseSelection": true,
"allowlistCount": 0,
"allowlistUsed": 0,
"signupCount": 0,
"maxSignups": null,
"closesAt": null,
"createdAt": "2026-11-19T09:12:40Z"
}{
"id": "sf_4k2m9q",
"registryId": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"url": "https://join.facetrustai.com/9fc9dc8b499e490f8db00d94e5e5509d",
"name": "Staff onboarding",
"status": "live",
"access": "code",
"lockedFields": {},
"primaryKeyMode": "ask",
"courseSelection": false,
"allowlistCount": 0,
"allowlistUsed": 0,
"signupCount": 0,
"maxSignups": null,
"closesAt": null,
"createdAt": "2026-11-19T09:12:40Z"
}{
"id": "sf_4k2m9q",
"registryId": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"url": "https://join.facetrustai.com/9fc9dc8b499e490f8db00d94e5e5509d",
"name": "VIP guests",
"status": "live",
"access": "allowlist",
"lockedFields": {
"pass_type": "VIP"
},
"primaryKeyMode": "generate",
"courseSelection": false,
"allowlistCount": 2,
"allowlistUsed": 0,
"signupCount": 0,
"maxSignups": null,
"closesAt": null,
"createdAt": "2026-11-19T09:12:40Z"
}Use it for
Not live yet
Headers#
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <key>, a key with the enrollment:write scope. See Authentication. |
Idempotency-Key | No | A UUID you generate. Retrying with the same key returns the original result. See Conventions. |
Content-Type | Yes | application/json |
Path parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
registryId | uuid | Yes | Your registry. Shown on this page and in the console under Registry. |
Body parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Internal name, e.g. "VIP guests". Max 80. |
title | string | Yes | Shown at the top of the form. Max 140. |
description | string | No | Date, venue, instructions. Max 2,000. |
branding | { logo, cover, accent, footer } | No | PNG/JPEG/WebP images (logo, cover banner), a hex accent colour and footer text (max 500). |
collectEmail | "required" | "optional" | "hidden" | No | Always required for allowlist access. |
collectPhone | "required" | "optional" | "hidden" | No | None |
primaryKeyMode | "ask" | "generate" | No | generate issues the primary key (e.g. Ticket ID) automatically. |
lockedFields | object | No | Field values fixed for everyone using this form, e.g. { "pass_type": "VIP" }. Hidden from the person. |
courseSelection | boolean | No | School registries: students pick their registered courses. |
access | "open" | "code" | "allowlist" | Yes | open: anyone with the link. code: an access code (min 6 characters). allowlist: invited emails only, proven by a one-time code sent to the inbox, once per invite. |
accessCode | string | No | Required for code access. |
allowlist | string[] | No | Invited emails for allowlist access (up to 5,000). |
maxSignups | integer | No | Close the form after this many registrations. |
closesAt | ISO 8601 | No | Close the form at this time. |
Response#
Returns 200 with the body shown in the response example. Examples follow the account type selected at the top of the page.
Shown above, with the request.
Errors#
| Code | HTTP | Meaning |
|---|---|---|
unauthorized | 401 | Missing, malformed, revoked or expired API key. |
forbidden_scope | 403 | The key doesn’t have the scope this endpoint needs. |
account_type_forbidden | 403 | This endpoint isn’t available to your account type. |
module_disabled | 403 | The module is switched off for your account. Contact FaceTrust. |
ip_not_allowed | 403 | The request came from an IP outside the key’s allowlist. |
rate_limited | 429 | Too many requests. Wait for Retry-After seconds. |
not_found | 404 | No such resource in your institution. |
validation_failed | 422 | The request body failed validation; see fields for per-field errors. |
vip_requires_restricted_access | 422 | A sign-up form open to anyone can’t hand out a VIP-type value. Use access code or allowlist. |