Authorization

Every request sent to API should contain ‘Authorization: Bearer {ACCESS_TOKEN}’ header. This section is about obtaining access token.

Getting access token

Access token can be obtained using the API key. To get the access token just send GET request to /token endpoint with ‘Authorization: Bearer {API_KEY}’ header.

Curl example:

curl -XGET https://api.url/token -H 'Authorization: Bearer {API_KEY}'

Response sample:

{"access_token":"ACCESS_TOKEN_HERE"}

Access token info

Access token is valid for 24 hours. When it expires just get new one using API KEY, and GET /token endpoint.