Creating Users

You will usually create users with admin roles through the dashboard but creating users with user or organization-admin roles for your licenses will be most of the time done using the Web API, when your customer makes a purchase.

Following is a sample request which creates a user with a user role:

Creating user

POST https://api.cryptlex.com/v3/users

Creates a new user.

Headers

NameTypeDescription

Authorization*

string

Bearer access token.

Request Body

NameTypeDescription

firstName*

string

First name of the user.

lastName*

string

Last name of the user.

email*

string

Email address of the user.

password*

string

Password of the user.

role*

string

Role of the user - 'user' or 'organization-admin'

{
  "name": "John Doe",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "role": "user",
  "id": "99e2ba70-09ce-4c18-8d6c-2adccb6379b9",
  "createdAt": "2018-05-01T07:53:56.0095476Z",
  "updatedAt": "2018-05-01T07:53:56.0095495Z"
}

Last updated