Skip to content

Create a user

Request

Create an organization user. Takes no password — a one-time temporary password is generated and returned once in the response; the user must set their own password on first login. The client is taken from clientRef, or your auth context when omitted.

Security
apikeyAuth
Bodyapplication/jsonrequired
clientRefstring

Target client. Defaults to the caller's own client when omitted.

Example:"Growthpoint"
emailstring, (email)required
Example:"agent@example.com"
firstNamestring
Example:"Jane"
lastNamestring
Example:"Doe"
mobileNumberstring
Example:"+27123456789"
primaryEmailAddressstring, (email)
Example:"jane@example.com"
liveChatRolestring
Enum:"Agent""Supervisor"
Example:"Agent"
agentChatLimitinteger, (int64)
Example:5
allowedSharedInboxboolean
Example:true
allowedUnassignedInboxboolean
Example:false
shouldGetNotificationsboolean
Example:true
assignmentMessagestring
Example:"Hi, I'm Jane and I'll be assisting you today."
applicationKeystring
Example:"app-key-123"
applicationClientIdstring
Example:"app-client-123"
userIdstring
Example:"ext-user-123"
curl -i -X POST \
  https://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/payless4messaging-service/WhatsApp/api/v1/users \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "clientRef": "Growthpoint",
    "email": "agent@example.com",
    "firstName": "Jane",
    "lastName": "Doe",
    "mobileNumber": "+27123456789",
    "primaryEmailAddress": "jane@example.com",
    "liveChatRole": "Agent",
    "agentChatLimit": 5,
    "allowedSharedInbox": true,
    "allowedUnassignedInbox": false,
    "shouldGetNotifications": true,
    "assignmentMessage": "Hi, I'\''m Jane and I'\''ll be assisting you today.",
    "applicationKey": "app-key-123",
    "applicationClientId": "app-client-123",
    "userId": "ext-user-123"
  }'

Responses

User created; includes the one-time temporary password

Bodyapplication/json
idstring, (uuid)
Example:"b2c3d4e5-f6a7-8901-b2c3-d4e5f6a78901"
emailstring, (email)
Example:"agent@example.com"
clientRefstring
Example:"Growthpoint"
temporaryPasswordstring
Example:"tempab12cd34ef56"
messagestring
Example:"User created. Share the temporary password securely; the user must set a new password on first login."
Response
{ "id": "b2c3d4e5-f6a7-8901-b2c3-d4e5f6a78901", "email": "agent@example.com", "clientRef": "Growthpoint", "temporaryPassword": "tempab12cd34ef56", "message": "User created. Share the temporary password securely; the user must set a new password on first login." }