v1 demo

Create a new user account

Create a new user account and return JWT authentication token.

This endpoint:
- Creates a new user with email and password
- Automatically creates a default organization if not provided
- Generates JWT authentication token
- Sends welcome email to the new user
- Returns user information and access token

**Authentication**: No authentication required
post/v1/demo/signup

Request body

emailstring email required

User's email address

namestring required

User's full name

passwordstring required

User's password (minimum 6 characters)

org_idstring nullable

Optional organization ID. If not provided, a default organization will be created automatically with the format 'Org: {user_name}'

Example request

{
  "email": "user@example.com",
  "name": "John Doe",
  "password": "securepassword123"
}

Response

Successful Response

access_tokenstring required

JWT access token

token_typestring

Token type

expires_ininteger required

Token expiration time in seconds

userobject required

User information

Example response

{
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
  "expires_in": 86400,
  "token_type": "bearer",
  "user": {
    "email": "user@example.com",
    "name": "John Doe",
    "user_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

Changes