Add account user

Create a new user under the authenticated account with a role (admin / location_assign / basic), optional per-store assignments and default reports (activity, review-response, insight). Emails first-login credentials via the white-label welcome email. Side effects: creates User + Person + Email + UserStore (+ Report) rows, sends a welcome email, writes a USER_CREATED audit event.

Auth

  • Account admin — collection bearer token. authorize requires the caller's company bundle_id to be ACCOUNT, else 403 (This action is unauthorized.).

Rate limit

  • No rate limit.

Body

FieldTypeRequiredNotes
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.
user_typestringRequiredadmin, location_assign, or basic.
store_idsinteger[]Required if user_type=location_assign, or basic with assign_all_accounts=0Store ids under the caller's account (an ownership check).
assign_all_accountsintegerRequired if user_type=basic0/1.
send_default_reportsintegerOptional0/1; 1 enables default reports (account companies only).
inactive_atstringOptionalY-m-d H:i:s deactivation date.

Behaviour

  • Synchronous (DB transaction). 200 returns per-report error/info/success arrays alongside the success message.
  • 403 when the caller is not an account company (authorize fails).
  • 422 on validation failure; 500 on save failure (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
store_ids
array of integers
store_ids
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