Creating Users

You will usually create users with admin role through dashboard but creating users with user role for your licenses will be most of the times done using the web API, when your customer makes a purchase.

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

post
Creating user

https://api.cryptlex.com/v3/users
Creates a new user.
Request
Response
Request
Headers
Authorization
required
string
Bearer access token.
Body Parameters
firstName
required
string
First name of the user.
lastName
required
string
Last name of the user.
email
required
string
Email address of the user.
password
required
string
Password of the user.
roles
required
array
List of roles, set it to ["user"]
Response
201: Created
{
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"roles": [
"user"
],
"id": "99e2ba70-09ce-4c18-8d6c-2adccb6379b9",
"createdAt": "2018-05-01T07:53:56.0095476Z",
"updatedAt": "2018-05-01T07:53:56.0095495Z"
}

‚Äč