Herald
OpenapiAuth

Register new user account

Creates a new user account with email and optional username. If email verification is required for realm, account will be created in a pending state and a verification email will be sent.

POST
/api/auth/{realmId}/register

Creates a new user account with email and optional username. If email verification is required for realm, account will be created in a pending state and a verification email will be sent.

Path Parameters

realmId*string

Realm ID

Request Body

application/json
  1. body
clientId*string
email*string
nickname?|

Registration nickname, persisted as the user's profile row. Optional at the API level so programmatic callers (SDK, email-OTP/LDAP/social auto-register flows) are unaffected; the first-party UI requires it.

password*string
turnstileToken?string|null
username?string|null

Response Body

Successful registration.

application/json
  1. response
message*string
verificationRequired*boolean
Example Request
curl -X POST 'https://example.com/api/auth/string/register' \
  -H 'Content-Type: application/json' \
  -d '{
  "clientId": "string",
  "email": "string",
  "password": "string"
}'
Example Response
{
  "message": "string",
  "verificationRequired": true
}