Authentication with the Yandex SpeechSense API

To use the SpeechSense API, create a service account and use it for authentication.

  • 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.

    1. Get an IAM token.

    2. Provide the IAM token in the Authorization header 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.

    1. Get an API key with yc.speech-sense.use as the specified scope.

    2. Provide the API key in the Authorization header 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.