Skip to main content
POST
Create a user

Authorizations

x-api-key
string
header
required

Send the API key in the x-api-key header.

Body

application/json
firstName
string
required
Minimum string length: 1
Example:

"Priya"

lastName
string
required
Minimum string length: 1
Example:

"Shah"

email
string<email>
required

Email the user signs in with. Must not belong to any existing ProVision user. The invitation with a temporary password is sent here.

Example:

"priya.shah@example.com"

phoneNumber
string

US phone number in E.164 format: +1 followed by 10 digits.

Pattern: ^\+1\d{10}$
Example:

"+15125550142"

userGroupIds
string[]

Ids of the user groups to grant, as returned by GET /v1/user-group/list. Duplicates are ignored.

Maximum array length: 50

User group id, a stable text key such as conversations_full_access.

Minimum string length: 1

Response

Created user

id
string
required
firstName
string
required
lastName
string
required
email
string<email>
required
isActive
boolean
required
createdAt
string<date-time>
required
phoneNumber
string
updatedAt
string<date-time>
conversationAssigneeGroups
(object | null)[]
userGroups
object[]

The user groups the user belongs to, private groups included. Platform groups appear only when the partner has access to platform user groups. Returned only with include=userGroups.