/v1/auth/signupCreate a new account and sign in
Request body
email*stringUser email address
Example: "user@example.com"
username*stringUnique username (letters, numbers, dot, underscore, hyphen)
Example: "john_doe"
password*stringUser password (min 8 characters)
Example: "MySecurePassword123"
display_namestringDisplay name
Example: "John Doe"
session_durationobjectSession duration: "short" (24h), "long" (90d), or integer seconds (3600–7776000). Defaults to 30 days.
Example: "long"
Response · 200 Token response
access_token*stringAccess token (JWT)
Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
refresh_tokenstringRefresh token (JWT)
Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
token_type*stringToken type
Example: "Bearer"
expires_in*numberAccess token TTL in seconds
Example: 3600
Example
Request
POST /v1/auth/signup
Content-Type: application/json
{
"email": "user@example.com",
"username": "john_doe",
"password": "MySecurePassword123",
"display_name": "John Doe",
"session_duration": "long"
}Response
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
}