Create partner user

Create a new user under the authenticated partner company, sets their role (admin / assign_brand / basic), optionally assigns account access and default reports, and emails first-login credentials via the white-label-aware welcome email. Side effects: creates User + Person (+ UserBrand rows), sends a welcome email, writes a USER_CREATED audit event.

Auth

  • Partner — collection bearer token. The endpoint creates the new user under the caller's company.

Rate limit

  • No rate limit.

Body

FieldTypeRequiredNotes
user_typestringRequiredadmin, assign_brand, or basic.
first_namestringRequired≤255 chars; no angle brackets.
last_namestringOptional≤255 chars.
titlestringOptional≤50 chars.
emailstringRequiredValid email; unique in users.
passwordstringRequired8–100 chars, mixed case + number + special char, no spaces/quotes.
accountinteger[]Required if user_type=assign_brand, or basic with assign_all_accounts=0Account company ids under the caller (validated by an ownership check).
assign_all_accountsintegerRequired if user_type=basic0 or 1.
send_default_reportsintegerOptional0/1; when 1 subscribes default activity + review-response reports.
inactive_atstringOptionalY-m-d H:i:s deactivation date.

Behaviour

  • Synchronous (DB transaction). 200 on success.
  • 422 on validation failure.
  • 500 on save failure (transaction rolled back).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
string
string
string
string
account
array of integers
account
integer
integer
string | null
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json