Download OpenAPI specification:
Tenant-aware facade over Keycloak: customer accounts and staff login.
Needs permission tenant.create (platform staff; platform-api passes the operator's token on). The realm gets the built-in roles and permissions, the back-office client (signed JWT with the back office's keys), password and brute-force policy and the email settings. Existing users, roles and clients stay as they are.
| tenantId required | string <uuid> The tenant's id; the realm is named by it |
| displayName | string <= 255 characters Shown on the sign-in page; the tenant can change it later |
{- "displayName": "string"
}{- "name": "string"
}Needs the one-time code identity wrote to its setup code file when it started without a platform realm. Creates the platform realm from the template and the operator (platform-admin); Keycloak emails them a link to set their password. One attempt at a time: while it runs, every other identity request but health and version gets 503. Afterwards this endpoint answers 404.
| code required | string The one-time code from identity's setup code file |
| email required | string <email> <= 254 characters The first operator's email address |
{- "code": "string",
- "email": "user@example.com"
}{- "realm": "string",
- "operatorEmail": "user@example.com"
}