API key
The API key is a secret key used for simplified authorization in the Yandex Cloud API. API keys are only used for service account authorization.
API keys do not expire. This means that this authentication method is simpler, but less secure. Use it if you can't automatically request an IAM token.
Alert
If someone might have gotten access to your private key, delete it and create a new one.
Users should store API keys on their own. Yandex Cloud only gives access to an API key while it is being created. If the key is lost or damaged, you cannot restore it. In this case, you can reissue the key or create a new one.
In the management console
Using the token
Enter the API key when accessing Yandex Cloud resources via the API. Provide the API key in the Authorization
header in the following format:
Authorization: Api-Key <API_key>
Services that support this authentication method
The following services support authentication based on API keys:
- Yandex Cloud Functions
- Yandex DataSphere
- Yandex Search API
- Yandex SpeechKit
- Yandex SpeechSense
- Yandex Translate
- Yandex Vision OCR