Herald
OpenapiAuth

Provision a new realm from an unauthenticated visitor and issue an immediate first-party admin-console session for the new realm admin.

Only the admin realm hosts this entry; any other `realmId` is rejected. Pre-flight defenses run before any realm is created: the platform toggle, human verification bound to the admin realm's `admin-web-console` Client App, and a same-IP 24h quota.

POST
/api/auth/{realmId}/signup

Only the admin realm hosts this entry; any other realmId is rejected. Pre-flight defenses run before any realm is created: the platform toggle, human verification bound to the admin realm's admin-web-console Client App, and a same-IP 24h quota.

Path Parameters

realmId*string

Must be "admin"

Request Body

application/json
  1. body

Public self-service realm provisioning request.

realm_slug is optional: when omitted the backend assigns a UUID v7 id. turnstile_token is only required when the admin realm's admin-web-console Client App has Turnstile enabled.

email*string
emailVerificationCode?|

6-digit mailbox verification code, required only when the admin realm's registration config turns on email verification for signup.

password*string
realmName*string
realmSlug?string|null
turnstileToken?string|null

Response Body

Realm provisioned and session issued.

application/json
  1. response

Tokens for the freshly provisioned realm, plus enough context for the frontend to switch its routing into the new realm's admin console.

accessToken*string
expiresIn*integer
Formatint64
Range0 <= value
realmId*string
realmName*string
refreshExpiresIn*integer
Formatint64
Range0 <= value
refreshToken*string
tokenType*string
Example Request
curl -X POST 'https://example.com/api/auth/string/signup' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "string",
  "password": "string",
  "realmName": "string"
}'
Example Response
{
  "accessToken": "string",
  "expiresIn": 0,
  "realmId": "string",
  "realmName": "string",
  "refreshExpiresIn": 0,
  "refreshToken": "string",
  "tokenType": "string"
}