Skip to main content
POST
Create a user

Authorizations

x-api-key
string
header
required

API key from Settings > API Keys or POST /v1/api-keys. Format f9_live_<32 hex chars> (live) or f9_test_<32 hex chars> (sandbox — no real sends, ever). Legacy wcrm_live_ / wcrm_test_ keys still authenticate but are no longer issued. Shown once at creation; only a hash is stored.

Headers

Idempotency-Key
string

Opaque client-generated key that makes a retried POST safe. Resending the same key with the SAME body replays the original response (marked with Idempotent-Replay: true) instead of creating a second record. Resending it with a DIFFERENT body is rejected with 422. Keys are scoped to your company and to the endpoint, and expire after 24 hours.

Required string length: 8 - 255
Pattern: ^[A-Za-z0-9_.:@+\-]+$

Body

application/json
email
string<email>
required
full_name
string
required
password
string

Given → login-ready immediately. Omitted → a temporary password is generated and returned once as temp_password.

Minimum string length: 8
role
string

Role NAME (e.g. Agent). One of role / role_id is required. Super_Admin is never granted.

role_id
string<uuid>
branch_id
string<uuid>
send_welcome
boolean
default:false

Send the welcome email (with the temporary password when generated). Off by default.

Response

User created

success
enum<boolean>
Available options:
true
data
object
meta
object