Authorization
Last updated
You can use the same username and password as the portal access to obtain an API token. Each user is associated with a role. The API token will let the server knows the role and permission of the user.
Here is how you can obtain authorization token:
GET https://{base_url}/api_dnl/v1/auth
expire_after_minutes
integer
duration of the expiration of the token
email_or_name*
String
username of the user
password*
String
password of the user
{
"email_or_name": "string",
"expire_after_minutes": 0,
"password": "string"
}{
{
"success": false,
"error_type": "operation_error",
"error": {
"message": "string",
"code": 0,
"reason": "string"
}
}{
"success": true,
"payload": {
"expired": "string",
"token": "string"
}
}Last updated