Authentication in the Yandex Cloud API
Written by
Updated at October 29, 2025
To work via the API, you can use an IAM token or an API key. You can use any of these authentication methods to work with Prometheus.
IAM token
An IAM token is a unique sequence of characters issued to the user following authentication.
How to get an IAM token:
Specify the received IAM token when accessing Yandex Cloud resources via the API. Provide the IAM token in the Authorization header in the following format:
Authorization: Bearer <IAM_token>
API key
The API key is a secret key only used for simplified authorization of service accounts with the Yandex Cloud API.
Guide to obtaining an API key for service accounts.