Register New User
/v1/auth/registerPart of Auth.
Creates the user and a personal organization. CAPTCHA required in production. Sends verification email when email verification is enabled.
Authentication
This operation does not require an API key.
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
namerequired | string | User's display name |
emailrequired | string (email) | User's email address |
passwordrequired | string | User's password (must meet security requirements) |
captcha_tokenoptional | string | CAPTCHA verification token (required in production) |
invite_tokenoptional | string | Org invitation token from an invitation email. When present, the new user joins the inviting organization at the invited role instead of receiving a personal organization. |
Example request
curl -X POST "https://api.robosystems.ai/v1/auth/register" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"email": "user@example.com",
"password": "string"
}'Responses
201 Successful Response
| Field | Type | Description |
|---|---|---|
userrequired | object | User information |
orgoptional | object | Organization information (personal org created automatically on registration) |
messagerequired | string | Success message |
statusoptional | string | Login flow state: authenticated (token present), or a passkey MFA step is required before a session is issued (mfa_token present) One of: Default: |
mfa_tokenoptional | string | Short-lived token authorizing the MFA second step or forced enrollment; present only when status is not 'authenticated' |
tokenoptional | string | JWT authentication token (optional for cookie-based auth) |
expires_inoptional | integer | Token expiry time in seconds from now |
refresh_thresholdoptional | integer | Recommended refresh threshold in seconds before expiry |
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 409 | Email already registered |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
| 503 | Registration temporarily disabled |