API Reference
Invitation API Overview
Public onboarding endpoints for invited admin and customer users.
The invitation API supports account activation for pre-created users.
Flow
- Validate the invitation token.
- Ask the user for a password.
- Complete the invitation and consume the token.
Live endpoints
| Endpoint | Purpose |
|---|---|
GET /api/invitation/validate?token=... | Inspect invitation state before showing the password form |
POST /api/invitation/complete | Set the password and consume the token |
Contract details
- Tokens are single-use.
- Tokens expire after 72 hours.
- Successful validation returns
userTypeas eitheradminorcustomer. - Completion requires a password with a minimum length of 8 characters.
- Reusing a consumed token returns a deterministic failure.
CORS behavior
This API is browser-facing and uses the ALLOWED_ORIGINS allowlist rather than wildcard CORS.