Skip to main content
POST
/
api
/
auth
/
register
Register a new user
curl --request POST \
  --url https://api.example.com/api/auth/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "password": "<string>",
  "name": "<string>",
  "invite_code": "<string>"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "bearer",
  "needs_onboarding": false,
  "mcp_credentials": {}
}

Body

application/json

Request schema for user registration.

email
string<email>
required
password
string
required
Required string length: 8 - 100
name
string | null
Maximum string length: 100
invite_code
string | null

Response

Successful Response

Response schema for registration — extends TokenResponse with onboarding flag.

access_token
string
required
refresh_token
string
required
token_type
string
default:bearer
needs_onboarding
boolean
default:false
mcp_credentials
Mcp Credentials · object