Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Endpoints and methods | Description | ||||||
---|---|---|---|---|---|---|---|
/v2/accounts/{accountName}/tokens  see below | Get Returns a list of all the tokens for the provided account. | ||||||
/v2/accounts/{accountName}/tokens /{tokenId} Â see below | Returns all the information of a single token, including the actual token. | ||||||
/v2/accounts/{accountName}/tokens  see below | Create Creates a new token. | ||||||
/v2/accounts/{accountName}/tokens/{tokenId}/enable  see below | Enable Enables a token. | ||||||
/v2/accounts/{accountName}/tokens/{tokenId}/disable  see below | Disable Disables a token. | ||||||
/v2/accounts/{accountName}/tokens/{tokenId}/rename  see below | Change Changes the name associated with a token. | ||||||
/v2/accounts/{accountName}/tokens/{tokenId} Â see below | Delete Deletes a token. |
Endpoints and methods
Anchor |
---|
...
|
...
|
/v2/accounts/{accountName}/tokens
Lists all the tokens for the provided account. This endpoint returns the information about the tokens and their IDs , but NOT the tokens themselves does not include the actual token values for security reasons.
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Find below a request example:
|
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
Anchor |
---|
...
|
...
|
/v2/accounts/{accountName}/tokens/{tokenId}
Returns the full information on details of a single token , identified by its ID. The response to this request includes the actual token value.
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Find below a request example:
|
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
Anchor |
---|
...
|
...
Add an internal user to a multitenant domain.
Every user in a domain needs to have at least one role assigned to them, either one of the default roles in the application or a custom role. While creating users in a domain, keep in mind the following restrictions:
Internal users cannot be used immediately after creation - they must first be activated through a link sent to the email address provided. The activation process also requires the user to create a password.
The first user added to a new domain must be internal and must be the domain owner. Owners cannot be deleted, and a domain can only have one owner.
Note |
---|
You’ll need the multitenant API keys to create the first user in the domain, and its role must be |
To assign a user (new or existing) as a domain owner, use the roleÂ
OWNER
 when creating the user. This will create the user with the roleÂADMIN
 but withOWNER
privileges. TheADMIN
role is exclusive and cannot be combined with other roles.
Note |
---|
Notice that even though the role |
This method can be also used to add an existing user to a different domain. In this case, the user will keep their original user name and phone number, ignoring any new value provided for them. The field
externalId
is ignored too since it only has meaning for external users (who might not have a password in the platform).
...
title | Request |
---|
Query string parameters
Query string parameters are added after the path parameters, preceded by a question mark (?
) and separated by an ampersand (&
)
...
Parameter
...
Type
...
Description
...
skipMailValidation
required
...
boolean
...
Set this to true
to skip the email address validation step when creating a user for the domain. In this case, the user must already exist in the platform and therefore already have a password. Default value is false
.
Note |
---|
Note that in order to use this parameter, you must use multitenant domain credentials to authorize your request. |
Request body
...
|
...
/v2/accounts/{accountName}/tokens
Creates a new token.
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Payload:
Find below a request example:
|
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
Anchor | ||||
---|---|---|---|---|
|
/v2/accounts/{accountName}/tokens/{tokenId}/enable
Enable token by ID.
Expand | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
domain
Name of the new user. Must match the expression "^(([a-zA-Z0-9À-ÿ])+([ _'.@-]))([a-zA-Z0-9À-ÿ])$". This field will be ignored if you are adding an already existing user to a different domain, and the current value will be kept.
Enter the email address of the new user.
Role of the new user. Basic roles in Devo are:
Custom roles must match the expression "^(([a-zA-Z0-9])+([ _-]))([a-zA-Z0-9])$". Check more info about roles at the top of this endpoint section.
Phone number of the new user. Must match the expression "^+(?:[0-9] ?){6,14}[0-9]$". This field will be ignored if you are adding an already existing user to a different domain, and the current value will be kept. Find below a request example:
And this is an example of a request body, including the required JSON object. In this example, we are adding the first user (owner) of a domain:
| ||||||||||||||||||||||
Expand | ||||||||||||||||||||||
| ||||||||||||||||||||||
Code Description 200 Successful response. User added to the given domain. Code Block |
Find below a request example:
|
Expand | ||
---|---|---|
|
Set the roles of a user in a given domain.
Expand | |||
---|---|---|---|
| |||
Path parametersAdd the following path parameters as part of the endpoint: | |||
Parameter | Type | Description | |
|
| Enter the email of the required user. | |
|
| Enter the name of the required domain. You must enter the full domain name using the format {domainName}@{resellerName} | |
Parameter | Type | Description |
| Set this to |
Code | Description | ||
---|---|---|---|
200 | Successful response. Token enabled. | ||
4xx | Bad request.
|
...
|
...
Anchor | ||||
---|---|---|---|---|
|
/v2/accounts/{accountName}/tokens/{tokenId}/disable
Disable token by ID.
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Find below a request example:
|
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...
Anchor | ||||
---|---|---|---|---|
|
/v2/accounts/{accountName}/tokens/{tokenId}/rename
This endpoint updates the name associated with a token, identified by its ID.
Expand | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||
Path parametersAdd the following path parameters as part of the endpoint: Code Block |
roles
object
Enter the list of role names separated by commas. Basic roles in Devo are:
Custom roles must match the expression "^(([a-zA-Z0-9])+([ _-]))([a-zA-Z0-9])$". Find below a request example:
And this is an example of a request body, including the required JSON object:
Payload:
If the new name is empty or null, the service will still return OK, but the token name will remain unchanged. Find below a request example:
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
...
Anchor |
---|
...
|
...
|
/
...
v2/
...
accounts/{
...
accountName}/
...
Removes the indicated roles from the user in the specified domain.
...
title | Request |
---|
Path parameters
Add the following path parameters as part of the endpoint:
...
Parameter
...
Type
...
Description
...
userEmail
required
...
string
...
Enter the email of the required user.
...
domainName
required
...
string
...
Enter the name of the required domain. You must enter the full domain name using the format {domainName}@{resellerName}
Request body
...
tokens/{tokenId}
Deletes a token from an account.
Note |
---|
Only to be used when the token is to be removed from the service. There is no coming back from this, and once a token is deleted then it's gone for good. |
Expand | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
roles
List of role names to be deleted, separated by commas. Basic roles in Devo are:
Find below a request example:
And this is an example of a request body, including the required JSON object:
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|