1. Authorization

Version 27.1 by Giorgi Mdivnishvili on 2024/01/09 14:19

 

Method Description

The initial method of the integration process is authorization. You will be provided with a  unique user username and password to generate the access token that you will need to pass in all the following methods.

Request URL - [POST]

Request Parameters

none

Request Body

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

Response Body

{
 "accessToken": "string"
}

Schema

 

Success

AuthRequest{

loginstring
nullable: true
passwordstring
nullable: true

}

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