Authentication with the Yandex SpeechSense API
Written by
Updated at December 23, 2025
To use the SpeechSense API, create a service account and use it for authentication.
Service account
-
With an IAM token:
Note
The IAM token has a short lifetime: no more than 12 hours. This makes it a good method for applications that automatically request an IAM token.
-
Provide the IAM token in the
Authorizationheader in the following format:Authorization: Bearer <IAM_token>
-
With API keys.
Note
Use API keys if requesting an IAM token automatically is not an option.
-
Get an API key with
yc.speech-sense.useas the specified scope. -
Provide the API key in the
Authorizationheader in the following format:Authorization: Api-Key <API_key>
-
Do not specify the folder ID in your requests, as the service uses the folder the service account was created in.