MonetaryAI / Docs
API ReferenceAuthentication

Register an email-verified company owner

Central host only. Single-use acknowledged email token, matching email and confirmed password. Company name/STIR optional; creates an isolated onboarding workspace and ADMIN membership atomically. Existing identities cannot be overwritten. Backend returns bearer tokens; browser BFF stores HttpOnly cookies.

POST
/api/v1/auth/register

Request Body

application/json
  1. body
company?
confirmPassword*string
Formatpassword
Length15 <= length <= 72
email*string
Formatemail
Length0 <= length <= 320
password*string
Formatpassword
Length15 <= length <= 72
token*string
Match[A-Za-z0-9_-]{43}
Length1 <= length

Response Body

Identity, workspace and session created

*/*
  1. response
accessToken?string

Short-lived bearer JWT

refreshToken?string

One-time opaque refresh token

curl -X POST 'https://api.monetaryai.uz/api/v1/auth/register' \  -H 'Content-Type: application/json' \  -d '{  "confirmPassword": "pa$$word_qwerty",  "email": "user@example.com",  "password": "pa$$word_qwerty",  "token": "string"}'
{  "accessToken": "string",  "refreshToken": "string"}