MobiariDocs

Create an account

POST
/auth/register

Registers a user with e-mail and password. The account starts without stores; create a tenant (POST /tenants) and a store (POST /stores) next, or accept an invite. Emits the user.created webhook. Does not sign in: call POST /auth/login afterwards.

Header Parameters

Idempotency-Key?string

A unique value (e.g. a UUID) per logical request. Retrying with the same key within 24 hours replays the first response instead of repeating the side effect; the replay carries Idempotent-Replayed: true. Reusing a key for a different request is a 422 idempotency_key_reused; retrying while the first is still running is a 409 idempotency_request_in_progress. JSON bodies up to 1 MB.

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/auth/register" \  -H "Content-Type: application/json" \  -d '{    "email": "ana@example.com",    "password": "string"  }'
{
  "created_at": "2019-08-24T14:15:22Z",
  "email": "string",
  "full_name": "string",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "is_active": true,
  "locale": null,
  "phone": "string",
  "totp_enabled": true,
  "whatsapp_2fa_enabled": true
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}