Register a new account
POST /api/auth/register
Creates an account and issues a bearer token. Standard signup requires name, email, password, and confirmation; the campaign mini-shell accepts email plus campaign target slug and derives the other values. Signup may be paused with 503; validation or billing/invite rules can return 422, an expired invitation returns 410, and the named signup limiter can return 429.
This operation needs no authentication.
Request body
Standard registration requires all four credential fields; campaign mini-shell derives name and password from email when only email and campaign_target_slug are sent.
application/json any
Any of
- object
billing_countrystringLength: 2 to 2 characters. Pattern:^[A-Za-z]{2}$billing_currencystringLength: 3 to 3 characters. Pattern:^[A-Za-z]{3}$billing_vat_idstringLength: at most 32 characterscampaign_target_slugstringLength: at most 100 characters. Pattern:^[a-z0-9][a-z0-9-]*$company_namestringLength: at most 255 characterscountry_codestringLength: 2 to 2 characters. Pattern:^[A-Za-z]{2}$emailstring (email) requiredLength: at most 255 charactersinvite_tokenstringLength: at most 128 charactersnamestring requiredLength: at most 255 characterspasswordstring (password) requiredpassword_confirmationstring (password) requiredutm_campaignstringLength: at most 128 charactersutm_contentstringLength: at most 128 charactersutm_mediumstringLength: at most 64 charactersutm_sourcestringLength: at most 64 characters
- object
campaign_target_slugstring requiredLength: at most 100 characters. Pattern:^[a-z0-9][a-z0-9-]*$emailstring (email) requiredLength: at most 255 charactersutm_campaignstringLength: at most 128 charactersutm_contentstringLength: at most 128 charactersutm_mediumstringLength: at most 64 charactersutm_sourcestringLength: at most 64 characters
Generated sample
{
"billing_country": "string",
"billing_currency": "string",
"billing_vat_id": "string",
"campaign_target_slug": "string",
"company_name": "string",
"country_code": "string",
"email": "user@example.com",
"invite_token": "string",
"name": "string",
"password": "string",
"password_confirmation": "string",
"utm_campaign": "string",
"utm_content": "string",
"utm_medium": "string",
"utm_source": "string"
}Responses
201 Account created and a bearer token returned.
application/json object
email_delivery_failedbooleanmessagestringtokenstringWrite onlyuserUserResource
Generated sample
{
"email_delivery_failed": true,
"message": "string",
"token": "string",
"user": {
"created_at": "2026-01-01T00:00:00Z",
"email": "user@example.com",
"id": 0,
"name": "string",
"balance_micros": 0
}
}409 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
410 Invitation expired.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Validation, invitation, or signup billing gate rejected the request.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Signup rate limit exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
503 Signups are paused.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.