Create User
Register a new end-customer user under your partner account.
Endpoint
| Property | Value |
|---|---|
| URL | POST /white-label-partner/create-user |
| Method | POST |
| Auth | R-Auth: <partner-jwt> |
| Content-Type | application/json |
Example Request
curl --location '{{baseUrl}}/white-label-partner/create-user' \
--header 'Content-Type: application/json' \
--header 'R-Auth: {{partnerJwt}}' \
--data-raw '{
"email": "alice@customer.com",
"firstName": "Alice",
"lastName": "Smith"
}'
Request body
{
"email": "alice@customer.com",
"firstName": "Alice",
"lastName": "Smith"
}
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Unique email address for the user |
firstName | string | Yes | User's first name |
lastName | string | Yes | User's last name |
Response
{
"userId": "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
}
Response fields
| Field | Description |
|---|---|
userId | UUID of the newly created user |
Notes
note
The user authenticates using the company API key returned from Create company, not a personal password.
Duplicate email
A duplicate email returns 409 USER_EXISTS_BY_MAIL.