Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • 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
      • All methods
      • Sending emails
        • GetConfigurationSetEventDestinations method
        • CreateConfigurationSetEventDestination method
        • UpdateConfigurationSetEventDestination method
        • DeleteConfigurationSetEventDestination method
      • Request headers
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Request
  • Path parameters
  • Request headers
  • Request body
  • Responses
  • 200 OK
  • Errors
  1. API reference
  2. REST
  3. Subscriptions
  4. CreateConfigurationSetEventDestination method

CreateConfigurationSetEventDestinations method

Written by
Yandex Cloud
Updated at September 19, 2025
  • Request
    • Path parameters
    • Request headers
    • Request body
  • Responses
    • 200 OK
    • Errors

Creates a subscription for a configuration in a folder. The folder is selected based on the service account the request originates from.

RequestRequest

POST /v2/email/configuration-sets/{ConfigurationSetName}/event-destinations HTTP/2

Path parametersPath parameters

Parameter

Description

ConfigurationSetName

Type: String.

Configuration name.

Request headersRequest headers

Use common request headers in your requests.

Request bodyRequest body

{
  "EventDestinationName": "<subscription_name>",
  "EventDestination": {
    "Enabled": <subscription_state>,
    "KinesisFirehoseDestination": {
      "IamRoleArn": "<role>",
      "DeliveryStreamArn": "<data_stream>"
    }
  },
  "MatchingEventTypes": [ "string" ]
}

Parameter

Description

EventDestinationName

Type: String.

Subscription name.

EventDestinations

Type: Object.

Object with subscription parameters.

Enabled

Type: Boolean.

Subscription status: true for enabled and false for disabled. If the subscription is enabled, email delivery notifications are sent to the specified stream.

KinesisFirehoseDestination

Type: Object.

Object that specifies the destination for notifications.

IamRoleArn

Type: String.

This parameter is not used. It is provided for compatibility with AWS.

DeliveryStreamArn

Type: String.

Data stream in Yandex Data Streams notifications are sent to.

It has the following format: arn:yc:yds:<region>::<endpoint>:<stream_name>. You can copy the endpoint from the Kinesis API endpoint field of the appropriate stream in Data Streams.

Example

arn:yc:yds:ru-central1::https://yds.serverless.yandexcloud.net/ru-central1/b1gkgm9daf9605nj****/etn5nuveugdr18ak****:postbox

MatchingEventTypes

Type: Array.

Array of event types that will prompt notifications. The possible values are:

  • SEND: Email sent.
  • BOUNCE: Email not delivered.
  • SUBSCRIPTION: Newsletter subscription.
  • DELIVERY: Email delivered.
  • DELIVERY_DELAY: Email delivery delayed.
  • OPEN: Email opened.
  • CLICK: Link in email clicked.

ResponsesResponses

200 OK200 OK

A successful request returns 200 OK in the response.

ErrorsErrors

For all errors, the response body has the same format:

{
   "Code": "<error_name>",
   "message": "<error_description>"
}

The name of the error is taken from its code, e.g., BadRequestException.

Possible errors:

Error code

Description

400 BadRequestException

The request contains invalid headers or parameters.

404 NotFoundException

The requested resource was not found.

409 AlreadyExistsException

A subscription with this name already exists. Specify a different name.

409 ConcurrentModificationException

There are conflicting operations. Wait for the previous operation to complete and repeat your request.

429 TooManyRequestsException

The request quota was exceeded.

429 LimitExceededException

The request limit was exceeded.

Was the article helpful?

Previous
GetConfigurationSetEventDestinations method
Next
UpdateConfigurationSetEventDestination method
© 2026 Direct Cursus Technology L.L.C.