To access the API, use OAuth 2.0 authorization.
Getting an OAuth token
POST https://auth-delivery.ucs.ru/connect/token
CODE
with the following parameters (Content-Type: application/x-www-form-urlencoded)
The response will contain a JWT access token and information about the token's validity period.
An OAuth token need to be used in all requests.
Authorization: Bearer <access_token>
CODE
Example
Authorization: Bearer eyJhbGciOiJSUzI....aXHgrHV-I
CODE
If the token is expired, repeat the "Get OAuth token" operation.
General rules for API requests
In requests that contain JSON in the request body, you must specify the HTTP header:
Content-Type: application/json
CODE