Sign up

POST /v1/auth/signuppublic. Creates a user account and workspace.
email
string
required
password
string
required
name
string
default:"\"\""
workspace
string
default:"\"\""
token
string
A session token (JWT), valid for the workspace’s configured TTL.
user
object
The created user.
curl -X POST https://host/v1/auth/signup \
  -H "Content-Type: application/json" \
  -d '{"email":"alice@lab.ai","password":"password123","name":"Alice","workspace":"lab"}'
Returns 400 if the email already exists or input is invalid.

Log in

POST /v1/auth/loginpublic.
email
string
required
password
string
required
token
string
user
object
Returns 401 on invalid credentials.

Current user

GET /v1/auth/me — requires Authorization: Bearer <JWT>.
user_id
string
org_id
string
name
string
email
string
Returns 401 if the token is missing, invalid, or expired.