Skip to main content
POST
Register
Creates a new user account and returns a session token along with the user object. New users are automatically joined to the Lobby room on creation.
Usernames must be 2-24 characters and can only contain letters, numbers, _, and -.
Use the returned token as Authorization: Bearer <token> for all subsequent API calls.

Body

application/json
username
string
required

2-24 chars: letters, numbers, _ , -

Example:

"myuser"

password
string<password>
required
Example:

"secure-password"

displayName
string
Example:

"My User"

Response

Account created

token
string
user
object