Skip to main content
Calling this endpoint creates a new player account and immediately returns a JWT access token and refresh token. You do not need to make a separate login call after registration — your client can start making authenticated requests with the tokens returned here.

Endpoint

No authentication is required.

Request body

string
required
The player’s email address. Must be a valid email format. Used as the unique account identifier.
string
required
The player’s password. Minimum 8 characters.
string
required
A unique identifier for the player’s device. This value is stored as the player’s auth_user_id and becomes the sub claim in all issued JWTs.

Example request

Response

201 Created

string
A signed JWT bearer token. Include this in the Authorization: Bearer header on every authenticated request. Expires in 30 days.
string
A signed JWT refresh token. Use this to obtain a new access token when the current one expires. Expires in 180 days.
object

Error responses