Skip to main content
Version: v1 (Current)

Registration Form API

These APIs load an active registration form and submit its configured field mapping. They can create/update attendees, save responses, assign configured groups and trigger confirmation work. Use Registration Forms to configure and test the form before integrating it. A successful response is not confirmation-email delivery or proof of login.

Context and routes​

Use team/project/form slugs under /api/v1/projects/{teamSlug}/{projectSlug}/registration-forms/{formSlug}. The resolved project must contain an active form whose type is registration, otherwise the controller returns 404. These routes inherit auth:sanctum and the applicable project/page permission stack; they are not unauthenticated public form endpoints. Use the supported portal/API context rather than embedding a management secret in public code.

MethodSuffixBehavior
GETbase pathReturn definition/runtime props and permitted attendee prefill.
POST/submitCreate or self-update according to registration mode and duplicate behavior.
PUT/meExplicitly update the authenticated same-project attendee through this form.

An actual attendee can resolve from the portal session or attendee token. A page token alone supplies no attendee actor and can represent the guest submission branch only when its effective context allows the request. require.attendee on PUT rejects page-only credentials; the controller additionally requires the attendee and form to have the same project. Actor identity is resolved server-side, not selected by an attendee_id answer.

Read the definition​

GET returns a direct prop object, not a data envelope. It includes form, usesLayoutEngine, slug, settings, allowedTypes, schema, strings/style/assets/custom settings, prefill/attendee context, registration mode and authentication state. Some values are null or empty when no plugin/settings/actor exists. Prefill depends on mode and configuration; a definition response does not establish blanket access to attendee fields.

The API converts the returned form graph to its legacy rendering vocabulary even when usesLayoutEngine is true. That flag still describes server validation. Do not infer the native graph storage shape from the returned vocabulary or overwrite a stored graph with this rendering payload.

For update_only without an actor, definition can include requires_login: true; it does not log the reader in. Treat settings, prefill, condition context and signed assets as request-scoped data. Verify actual output and audience restrictions in the consuming environment.

Build answers from the form​

There is no universal registration JSON body or fixed list of required attendee fields. Read the current form's element/field names and validation. Submit answers under those names, required confirmation twins where configured, any permitted attendee-type choice and access_code when required. Do not send an entire definition object as the answer body.

Legacy forms validate their flat fields before the submission service. Layout-engine forms validate the visible graph set within the service, including required/type/unique/confirmation constraints, and drop condition-hidden answers. Consumed confirmation twins are removed before storage. A generic OpenAPI object schema cannot reproduce this dynamic validation or prove a payload will be accepted.

The service separates mapped attendee fields from response metadata and records create/update responses. Password/confirmation/encrypted-field handling and actual response output need form-specific privacy acceptance. The create path limits configured group assignments to the form's project. Do not assume submitting a field automatically grants an attendee group or allows an arbitrary attendee-type change.

Submit and interpret the result​

POST /submit follows the form's mode:

ModeActing attendeeBranch
new_onlyAnyCreate/duplicate workflow.
update_onlyNone403 with code: "login_required".
update_only / bothSame-project attendeeUpdate that attendee through the form.
bothNoneCreate/duplicate workflow.

A foreign-project actor is discarded by the submission service before mode selection; verify that the caller's page/project middleware permits only the intended context. Do not treat that fallback as permission to operate across projects.

Submit checks the form's active access code and usage limit when configured. Rejected duplicates do not consume a use; successful results consume after processing, including an existing result. Check/consume are separate operations, not an atomic invite reservation. An uncertain response must be reconciled before retrying, because another successful submission can spend a use or produce another response/event.

An illustrative successful creation response is:

{
"success": true,
"message": "Registration processed successfully.",
"attendee_id": 123,
"action": "created",
"redirect_url": null
}

Creation returns HTTP 201; successful update/existing branches return 200. The action is significant: duplicate allow can return an existing attendee without creating a second one. Reject/prompt outcomes return 409 with success: false and duplicate: true. For layout-engine forms, legacy duplicate prompt/update behaviors harden to rejection rather than unverified identity updates. Prefer authenticated self-update; do not treat matching an email as login.

When the linked authentication method enables post-registration auto-login and the result actually created an attendee, the response can also contain auto_login, a minimal attendee summary and registration_token. These are sensitive handshake data, not an API bearer or proof the session is established. Use the supported portal auto-login flow and verify session state afterward. Do not log/store the token in public examples or share it through analytics; this guide does not run a login exchange.

redirect_url resolves through the portal linked to the form's authentication method and can be null. Layout-engine forms skip legacy form-setting redirects in that service; their submit-button behavior is separate. Treat a returned destination separately from successful persistence and login.

Explicit self-update​

PUT /me requires an actual same-project attendee and validates the form mapping. At develop commit 25e1564 (reviewed 2026-10-19), it first checks whether the form accepts self-updates: new_only, including missing settings that default to that mode, returns HTTP 403 with error: "This form does not accept updates.". Use an update-capable mode and verify deployed behavior before relying on this guard. Earlier source revisions did not perform this mode check.

Successful self-update returns the same success shape with action: "updated". It does not choose another attendee from the body, run duplicate matching or reapply POST's access-code gate. Mode permission is separate from attendee authentication, page/project authorization and dynamic answer validation; test each boundary in the installed environment.

Validation can return 422 with field errors; legacy pre-validation errors and service-caught errors can have different framework envelopes. Keep the returned field keys attached to the corresponding controls rather than interpreting every 422 as a duplicate.

Verify and troubleshoot​

In an approved isolated project, test definition with page-only and attendee identities, mode-specific prefill/login state, dynamic visible/hidden/required/confirmation fields, allowed type choices, access codes and duplicate outcomes. Test explicit self-update with a real same-project attendee and refused other identities/projects. Inspect stored attendee/response fields, intended group assignments and separate confirmation/login outcomes. All submissions are real writes; this guide's response examples do not submit records.

The submit limiter defaults to ten requests per minute, configurable. Its key reads a route parameter named form, while these routes use formSlug; the reviewed API registration therefore shares the empty-form/IP bucket rather than proving a separate per-form quota. Honor 429 and avoid replay loops. Definition and explicit update do not have this named submit limiter, though outer API throttling still applies.

ResponseCheck
401/403 before handlerSupported credential, attendee identity where required and effective page/project context.
404Correct slugs, active registration-form type and project membership.
403 on explicit self-updateAt develop 25e1564, form is new_only or defaults to it; confirm update-capable settings and deployed version.
403 on submitAccess-code rejection or login_required for update-only.
409 duplicateForm mode/duplicate behavior; resolve identity through login rather than blindly retrying.
422Current form-specific field/visible-set/type/confirmation validation and returned errors.
500Reconcile persisted state before retry; report sanitized context to the platform owner.
Success but no email/loginPersistence, queued confirmation and login handshake are distinct.

The REST reference describes these three operations. Source reconciliation at platform 280cb4c498d70c7e5fcb722d479a9e296e63d31b and structural response tests do not establish dynamic-form validation, privacy, access-code concurrency, login or deployed acceptance.

The self-update mode guard was additionally source-reviewed at develop 25e1564; its isolated decision check does not establish endpoint authentication, validation, persistence or deployed acceptance.