Authorization

In order to use the AppMetrica API, you need to get an access token from the Yandex.OAuth service. The token must be sent with all method requests in the HTTP Authorization header.

Example:

curl -X GET \
  https://api.appmetrica.yandex.ru/management/v1/applications \
  -H 'Authorization: OAuth 05dd3dd84ff948fdae2bc4fb91f13e22bb1f289ceef0037'
Attention. Sending the token in the URL parameters is not supported.

If an API method is called without a token, or the request includes an invalid token, the server returns the HTTP status 401 Unauthorized.

Obtaining the OAuth token

Register your application to obtain the access token. Choose the appropriate access rights during registration:

For more information about authorization, read the document OAuth authentication. Developer's guide. This document also provides recommendations for client application developers.

For information on getting a token for application development and debugging, see the section Debugging token.