Skip to main content
POST
Invite user to the company

Authorizations

Authorization
string
header
required

API token in the sk_live_… format.

Body

application/json
email
string<email>
required

Email of the person who will receive the invitation.

Example:

"marina@exemplo.com.br"

profileId
integer

Permission profile of this person in this company. Use the id from GET /profiles.

An id that does not belong to this company returns 422 ERR_API_PROFILE_NOT_FOUND.

Example:

21

profile
enum<string>
deprecated

Legacy way to choose the profile, kept for integrations that already use it. Prefer profileId.

If profileId is also sent, profileId wins. With neither, the person joins as Agent.

Available options:
admin,
user
name
string

Name shown in the company. If not sent, the account name is used.

Example:

"Gabriel Goulart"

queueIds
integer[]

Queues the person will work in.

Example:
channelsIds
integer[]

Channels the person can see.

Example:
maxOpenTickets
integer

Maximum number of simultaneous tickets. If not sent, there is no limit.

Example:

5

language
enum<string>

Language of the invitation email sent to the person:

Available options:
pt-BR,
en-US

Response

Invitation sent. Returns the newly created membership, in the same format as GET /users/{id}, with approved: false until the person accepts the invitation by email. The id returned is already the membership id and can be used in the next calls.

data
object

User from the company's point of view. The id is the user's id in this company, and the email belongs to the person's account. Name, profile, activation, presence and ticket limit are set per company, so the same user can have different values in each company.

Super admin accounts never appear.

Example: