Skip to content
Sign in Create account

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_country string
      Length: 2 to 2 characters. Pattern: ^[A-Za-z]{2}$
    • billing_currency string
      Length: 3 to 3 characters. Pattern: ^[A-Za-z]{3}$
    • billing_vat_id string
      Length: at most 32 characters
    • campaign_target_slug string
      Length: at most 100 characters. Pattern: ^[a-z0-9][a-z0-9-]*$
    • company_name string
      Length: at most 255 characters
    • country_code string
      Length: 2 to 2 characters. Pattern: ^[A-Za-z]{2}$
    • email string (email) required
      Length: at most 255 characters
    • invite_token string
      Length: at most 128 characters
    • name string required
      Length: at most 255 characters
    • password string (password) required
    • password_confirmation string (password) required
    • utm_campaign string
      Length: at most 128 characters
    • utm_content string
      Length: at most 128 characters
    • utm_medium string
      Length: at most 64 characters
    • utm_source string
      Length: at most 64 characters
  • object
    • campaign_target_slug string required
      Length: at most 100 characters. Pattern: ^[a-z0-9][a-z0-9-]*$
    • email string (email) required
      Length: at most 255 characters
    • utm_campaign string
      Length: at most 128 characters
    • utm_content string
      Length: at most 128 characters
    • utm_medium string
      Length: at most 64 characters
    • utm_source string
      Length: 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_failed boolean
  • message string
  • token string
    Write only
  • user UserResource

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

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

410 Invitation expired.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 Validation, invitation, or signup billing gate rejected the request.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Signup rate limit exceeded.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

503 Signups are paused.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.