POST /api/v1/users

Send an invitation to a given user (who will receive an automatic invitation email), or directly create an account.

An invitation is sent when no password is defined, and the sendCredentials parameter is true. Else, the account is created.

Possible outcomes for values of password and sendCredentials

password is defined?sendCredentialsOutcome
YestrueThe account is created, and this notification is sent (sharing the password defined).
YesfalseThe account is created, and no notification is sent (except session invitations, if applicable).
NotrueThe account is created + this notification is sent (sharing a generated password).
NofalseThe account is not created, and this notification is sent (with no password shared).

Returns

Possible messages:

If you create or invite a user with the email address of a deleted user, some fields will be kept. See our article Restore a deleted account for the complete list.

Changelog

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/x-www-form-urlencoded"

Query parameters

Name Type Required Description
company String No

(Optional) Include the company ID to authenticate calls via the API key as query parameter. For more information on the authentication methods supported by our API, see Authentication Methods.

apiKey String No

(Optional) Include the API key to authenticate calls via the API key as query parameter. For more information on the authentication methods supported by our API, see Authentication Methods.

Request body fields

Name Type Required Description
groups[0] String No
groups[1] String No
primaryGroupId String No
cancelTheInvitationAfterDays String No
roles[0] String No
organization String No
sendCredentials String No
custom String No
lang String No
job String No
lastName String No
phone String No
password String No
firstName String No
mail String No

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.