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
  • Audit Trails events
  • Release notes

In this article:

  • Getting started
  • General API request format
  1. API reference
  2. How to use the API

How to use the Amazon API to access Yandex Cloud Postbox

Written by
Yandex Cloud
Updated at March 28, 2025
  • Getting started
  • General API request format

Getting startedGetting started

  1. Create a service account.

  2. Assign the required roles to the service account.

    You can select the appropriate role from the Access management section. For example, to get configuration info, the postbox.viewer role is enough. To send emails, the service account needs the postbox.sender role.

  3. Create a static access key.

    It is required for authorization when submitting requests to the Amazon API. To store the key safely, use Yandex Lockbox.

General API request formatGeneral API request format

<HTTP_method> <endpoint> HTTP/2
Host: postbox.cloud.yandex.net
{Authorization|X-YaCloud-SubjectToken}: <authentication_credentials>
X-Amz-Date: <time_in_ISO_8601_format>

<request_body>

For a list of endpoints and relevant HTTP methods, see the API reference. For a list of available headers, see Request headers.

A request must include one of the authentication headers:

  • X-YaCloud-SubjectToken: Contains a service account IAM token. Learn more about authentication with an IAM token here.

  • Authorization: Contains a static access key and request signature. The signature is required when accessing the API directly without the AWS CLI or apps. Yandex Cloud Postbox supports Amazon Signature Version 4. For more information, see the Authorization header description.

    You can test the signature generation process using the AWS CLI in debug mode. For this, add the --debug flag to the aws command. For more information, see this debug example.

    To avoid generating the signature manually, use the cURL utility: it automatically signs requests to the Amazon API. For more information, see this API use case.

Was the article helpful?

Previous
Authentication with the API
Next
Signing requests
Yandex project
© 2025 Yandex.Cloud LLC