BoldSales

API Documentation

Create a user

post/api/v1/users

Creates a new user and returns the created user's ID upon a successful API call.

Code snippet

curl -X 'POST' \
  'https://{yourdomain}/api/v1/users' \
  -H 'accept: text/plain; x-api-version=1.0' \
  -H 'x-api-key: {your API key}' \
  -H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
  -d '{
    "data": {
      "firstName": "John",
      "lastName": "Smith",
      "emailAddress": "[email protected]",
      "reportsTo": {
        "id": 101
      },
      "role": {
        "id": 2
      },
      "permissionSet": {
        "id": 1
      },
      "timezone": {
        "id": 15
      }
    }
  }'

Request body

firstNamestringRequiredFirst name of the user. Used for display purposes and identification within the organization.
lastNamestringLast name of the user. Combined with first name for full display name and identification.
emailAddressstringRequiredEmail address for the user account. Must be unique and will be used for login authentication.

reportsToobject

Manager or supervisor that this user reports to in the organizational hierarchy.

idintegerUnique identifier of the manager or supervisor user.

roleobject

Role assignment that defines the user's job function and responsibilities.

idintegerUnique identifier of the role to assign to the user.

permissionSetobjectRequired

Permission set that defines access levels and capabilities for the user account.

idintegerRequiredUnique identifier of the permission set to assign to the user.

timezoneobject

The user's time zone, used to display dates and times in local time.

idintegerUnique identifier of the timezone to assign to the user.

Example response

201 Created

{
  "message": "User account created. An invitation email has been sent.",
  "data": {
    "id": 1234
  }
}