Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex SpeechKit
  • SpeechKit technology overview
  • Supported audio formats
  • IVR integration
  • Quotas and limits
  • Access management
  • Pricing policy
    • Error codes
    • Request headers
    • General questions
    • Speech recognition
    • Speech synthesis
    • All questions on a single page

In this article:

  • Request headers
  • Examples
  • Response headers
  1. Troubleshooting
  2. Request headers

Request headers for troubleshooting in Yandex SpeechKit

Written by
Yandex Cloud
Improved by
amatol
Updated at April 24, 2025
  • Request headers
    • Examples
  • Response headers

If you get an error sending requests to the API and need help, use these guidelines or contact support.

The support team will solve your issue faster if you use advanced HTTP request and response headers.

Request headersRequest headers

When sending HTTP requests, use the following headers:

  • x-client-request-id is a unique request ID. We recommend using a UUID. Send this ID to the technical support team to help us find a specific request in the system and assist you.

    You can generate a UUID either online or through the library for the programming language you use.

  • x-data-logging-enabled: Flag that allows saving the data provided by the user in the request.

    By default, we do not save any audio or text you provide. If you provide the true value in this header, your data will be saved. This, along with the request ID, will help the technical support team to solve your problem.

ExamplesExamples

For example, the following headers will help you find your request and use the provided audio to refine your recognition model.

cURL
export FOLDER_ID=<folder_ID>
export IAM_TOKEN=<IAM_token>

curl \
  --verbose \
  --request POST \
  --header "x-client-request-id: fa18fa9b-176d-4ae0-92b8-bd78********" \
  --header "x-data-logging-enabled: true" \
  --header "authorization: Bearer ${IAM_TOKEN}" \
  --data-binary "@speech.ogg" \
  "https://stt.api.cloud.yandex.net/speech/v2/stt:recognize?folderId=${FOLDER_ID}"

Where:

  • FOLDER_ID: ID of the folder for which your account has the editor role or higher.
  • IAM_TOKEN: IAM token used for authentication.

Tip

Use the -v or --verbose flag to output the full command execution log to the terminal.

Response headersResponse headers

Each server response contains headers that provide even more information about the request execution:

  • x-request-id: Unique response ID
  • x-server-trace-id: Unique request execution log ID

To retrieve the x-request-id and x-server-trace-id values, your application must log server response headers.

You can find an implementation example for access to gRPC headers in the grpc-go library documentation.

Was the article helpful?

Previous
Error codes
Next
General questions
© 2025 Direct Cursus Technology L.L.C.