Create User

Invite a new user to your organization.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Authorization

This endpoint requires Authorization.

Request Body

KeyTypeDescriptionRequired
emailstringEmail address for the new user. Must be unique across all organizations under this partner.Yes
namestringDisplay name for the new user.Yes
group_idsarrayList of group UUIDs to assign the user to. At least one group is required.Yes
{
  "email": "[email protected]",
  "name": "Jane Doe",
  "group_ids": ["269ec8e1-f599-4918-a36b-424aaeef6b83"]
}

Response

Returns the created user:

KeyTypeDescription
idstringUnique identifier of the new user (UUID).
namestringDisplay name of the user.
emailstringEmail address of the user.
group_namesarrayNames of the groups the user was assigned to.
deactivated_atdatetimeAlways null for a newly created user.
created_atdatetimeTimestamp when the user was created.
welcome_email_statusstringOutcome of the invitation email: sent, sso or failed (see below).
messagestringHuman-readable notice about the invitation email. Present only when welcome_email_status is sso or failed.

welcome_email_status values:

ValueMeaning
sentThe user was sent a welcome email with instructions to sign in.
ssoYour organization enforces single sign-on, so the user was sent an email to sign in with their company account instead.
failedThe user was created, but the invitation email could not be sent. Retry with Resend Welcome Email.
{
  "id": "9e34b87d-79ca-4dc3-ac42-8ce9ebe8be82",
  "name": "Jane Doe",
  "email": "[email protected]",
  "group_names": ["administrators"],
  "deactivated_at": null,
  "created_at": "2024-01-15T10:00:00Z",
  "welcome_email_status": "failed",
  "message": "The user was created, but we couldn't send the invitation email. Please try Resend Signup Email later."
}
📘

Note

A failed invitation email does not fail the request: the user is created either way. Check welcome_email_status rather than the HTTP status to know whether the invitation reached the user.

Errors

StatusMessageDescription
422Email can't be blankThe email field is missing.
422Email is not an emailThe email value is not a valid email address.
422You have to assign the user at least to one groupThe group_ids field is missing or empty.
422The user {email} is already associated with another accountThe email is already registered in another organization under this partner.
422Members of an SSO-synced group are managed by your identity provider: {group names}One or more group_ids are synced from your SSO provider; the whole request is rejected. The message lists the synced groups.
Body Params
string
required

Email address for the new user. Must be unique across all organizations under this partner.

string
required

Display name for the new user.

group_ids
array of strings
required

List of group UUIDs to assign the user to. At least one group is required.

group_ids*
Response

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json