Authenticating when invoking a private function via HTTPS
Written by
Updated at February 7, 2025
To invoke a private function via HTTPS, you must authenticate. To do this, get:
-
- How to get a token for a Yandex account.
- Guide for a service account.
- Guide for a federated account.
Provide the IAM token in the
Authorization
header in the following format:Authorization: Bearer <IAM_token>
IAM tokens are valid for up to 12 hours.
-
API key for a service account.
Provide the API key in the
Authorization
header in the following format:Authorization: Api-Key <API_key>
Use API keys if requesting an IAM token automatically is not an option.