Create a new user account and start an authenticated session.
cURL
curl --request POST \ --url https://api.crustocean.chat/api/auth/register \ --header 'Content-Type: application/json' \ --data ' { "username": "myuser", "password": "secure-password", "displayName": "My User" } '
{ "token": "<string>", "user": { "id": "<string>", "username": "<string>", "displayName": "<string>", "avatar": "<string>", "banner": "<string>", "description": "<string>", "theme": "<string>", "font": "<string>", "role": "<string>", "createdAt": "2023-11-07T05:31:56Z" } }
_
-
token
Authorization: Bearer <token>
2-24 chars: letters, numbers, _ , -
"myuser"
"secure-password"
"My User"
Account created
Show child attributes