Skip to main content
POST
Upsert User

Authorizations

X-API-Key
string
header
required

Body

application/json

Create a user, or update the existing one matched by email, before first login.

Only provided fields are written. is_staff is intentionally not exposed: the API can never grant admin (staff) status.

email
string
required
first_name
string | null
last_name
string | null
organization_id
string | null
permission_ids
string[] | null
additional_info
Additional Info · object | null
business_context
Business Context · object | null
is_reviewer
boolean | null
is_viewer
boolean | null

Response

OK

id
string
required
email
string
required
object
string
default:user
first_name
string
default:""
last_name
string
default:""
is_customer
boolean
default:true
email_domain
string | null
organization
Organization · object | null
created_at
string | null
permissions
PermissionMini · object[] | null