1. Authorization

Version 30.2 by Giorgi Mdivnishvili on 2024/04/11 15:35

 

Authorization: Starting Your Integration

The first step in integrating with our API is the authorization process. As a developer, you'll be assigned a unique username and password. These credentials are essential for generating the access token, a critical component that must be included in the headers of all subsequent API requests. This token validates your requests and grants you access to the full suite of our services.

Request URL - [POST]

Request Parameters

none

Request Body

{
"login": "string",
"password": "string"
}

Response Body

{
 "accessToken": "string",
 "refreshToken": "string",
 "passwordExpired": true
}

Schema

 

Success

AuthResponse{

accessTokenstring
nullable: true
refreshTokenstring
nullable: true
passwordExpiredboolean

}

Important

Error

It's Important to in every other request header, put Auth token

Key - Authorization

Value - Bearer Token what is given in this response. (Authorization type Bearer Token)

also note in headers that:

Content-Type - application/json

Key - X-nugios-timezone

Value - 240