Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Postbox
  • Getting started
  • Access management
  • Pricing policy
    • API authentication
    • How to use the API
    • Signing requests
  • Metrics Monitoring
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Amazon API use cases
  • Authentication with a static key
  • Authentication using an IAM token
  1. API reference
  2. API authentication

Authentication with the Yandex Cloud Postbox API

Written by
Yandex Cloud
Updated at March 28, 2025
View in Markdown
  • Amazon API use cases
    • Authentication with a static key
    • Authentication using an IAM token

You can access Yandex Cloud Postbox using the Amazon API. For authentication, use a static access key or an IAM token. This way, you will run all operations as the service account the static key or IAM token was issued to. For more information, see How to use the API.

To access the Amazon API directly, without the AWS CLI or apps, use one of these methods:

  • Manually generate a request signature and provide it in the Authorization header. To learn more about signing requests and verifying signatures, see Signing requests.
  • Authenticate with an IAM token you get for the service account and provide it in the X-YaCloud-SubjectToken header. In this case, you do not need the Authorization header and signature.

Amazon API use casesAmazon API use cases

The examples below show how to get a list of configurations with a request sent via cURL.

Before you start, create a service account with the appropriate role. The postbox.viewer role works well for these examples.

Authentication with a static keyAuthentication with a static key

  1. Create a static key for the service account.

  2. Run this request:

    export AWS_KEY_ID="<static_key_ID>" && \
    export AWS_SECRET_KEY="<secret_key>" && \
    curl \
       --request GET \
       --user "${AWS_KEY_ID}:${AWS_SECRET_KEY}" \
       --aws-sigv4 "aws:amz:ru-central1:ses" \
       --url 'https://postbox.cloud.yandex.net/v2/email/configuration-sets' \
       --verbose
    

Authentication using an IAM tokenAuthentication using an IAM token

  1. Get an IAM token for the service account.

  2. Run this request:

    export IAM_TOKEN="<IAM_token>" && \
    curl \
       --request GET \
       --header "X-YaCloud-SubjectToken: ${IAM_TOKEN}" \
       --url 'https://postbox.cloud.yandex.net/v2/email/configuration-sets' \
       --verbose
    

Was the article helpful?

Previous
Pricing policy
Next
How to use the API
© 2026 Direct Cursus Technology L.L.C.