Authorization

Most HTTP API calls require authentication and authorization procedures that associate API calls with the required applications in your account.

For this purpose, each request must include a header or an X-Authorization argument containing the connection token in the AccessKey token format.

For example, as a header:

POST /apps/activate HTTP/1.1
Host: api.unibell.ru
X-Authorization: AccessKey d8ac9959r12b43545XXXXX

X-Authorization is passed depending on the HTTP connection settings:

AccessKey d8ac9959r12b43545XXXXX — by default
Basic d8ac9959r12b43545XXXXX (or Basic base64encoded(username:password))
Bearer d8ac9959r12b43545XXXXX

or as a parameter:

POST api.unibell.ru/apps/activate?X-Authorization=AccessKey d8ac9959r12b43545XXXXX

Example of a request using CURL:

curl --location --request POST 'https://api.unibell.ru/apps/activate' \
--header 'X-Authorization: AccessKey d8ac9959r12b43545XXXXX'
curl --location --request POST 'https://api.unibell.ru/apps/activate?X-Authorization=AccessKey%20d8ac9959r12b43545XXXXX'
On this page