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.
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.
realmId*stringMust be "admin"
application/json- 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*stringemailVerificationCode?|6-digit mailbox verification code, required only when the admin realm's registration config turns on email verification for signup.
password*stringrealmName*stringrealmSlug?string|nullturnstileToken?string|nullRealm provisioned and session issued.
application/json- 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*stringexpiresIn*integerint640 <= valuerealmId*stringrealmName*stringrefreshExpiresIn*integerint640 <= valuerefreshToken*stringtokenType*stringcurl -X POST 'https://example.com/api/auth/string/signup' \
-H 'Content-Type: application/json' \
-d '{
"email": "string",
"password": "string",
"realmName": "string"
}'{
"accessToken": "string",
"expiresIn": 0,
"realmId": "string",
"realmName": "string",
"refreshExpiresIn": 0,
"refreshToken": "string",
"tokenType": "string"
}