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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Cloud Postbox
  • Getting started
  • Access management
  • Pricing policy
    • Authentication with the API
    • How to use the API
    • Signing requests
      • All methods
      • Sending emails
      • Request headers
  • Audit Trails events
  • Release notes
  1. API reference
  2. REST
  3. Request headers

Request headers

Written by
Yandex Cloud
Updated at October 22, 2024

Most headers available for requests in the Amazon API are of X-Amz-* type. They are optional and contain authentication information. Use them to create signed requests.

Header

Description

Accept

Data type in the response, e.g., application/json (default).

For more information about data types, see Media type in Wikipedia.

Authorization

Any request to Yandex Cloud Postbox must be authorized.

The header must contain a static access key and request signature. Learn more about header format here.

To avoid signing the request, use the X-YaCloud-SubjectToken header instead of Authorization.

Content-Type

Data type in the request, e.g., application/json (default).

For more information about data types, see Media type in Wikipedia.

X-Amz-Algorithm

Request signature algorithm.

Provide AWS4-HMAC-SHA256 in the header because Yandex Cloud Postbox supports Amazon Signature Version 4.

X-Amz-Content-Sha256

Request payload hash. Used to sign requests in Amazon Signature Version 4 format.

X-Amz-Credential

Scope of signature validity. The header must have the following format: <static_key_ID>/<date>/ru-central1/ses/aws4_request. In the header, specify the following:

  • Static access key ID you obtained when getting started.
  • Date in YYYYMMDD format.

X-Amz-Date

Time in ISO 8601 format, e.g.: 20240920T091646Z.

X-Amz-Security-Token

Token to provide if the authentication credentials are issued by STS.

X-Amz-Signature

Request signature. Learn more about signing requests here.

X-Amz-SignedHeaders

List of headers used for request signature generation. Required headers include the following:

  • host: HTTP host to send requests to.
  • x-amz-*: Amazon API headers.

Provide the headers in lowercase, sort them alphabetically, and separate with semicolons, e.g.: host;x-amz-date.

X-YaCloud-SubjectToken

IAM token for authenticating with the API.

Use only one of the two headers: Authorization orX-YaCloud-SubjectToken. For Authorization, you need to get a static access key and sign the request, while for X-YaCloud-SubjectToken, get an IAM token. Learn more about authentication here.

Was the article helpful?

Previous
DeleteConfigurationSetEventDestination method
Next
Audit Trails events
Yandex project
© 2025 Yandex.Cloud LLC