Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex API Gateway
  • Getting started
    • Resource relationships
    • Networking
      • Overview
      • Timer
      • Trigger for Message Queue
      • Trigger for Object Storage
      • Trigger for Container Registry
      • Trigger for Yandex Cloud Logging
      • Trigger for budgets
      • Trigger for Data Streams
      • Email trigger
      • Telegram Trigger
    • Quotas and limits
  • Access management
  • Tools
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Roles required for the proper operation of a trigger for Data Streams
  • Format of the message from the trigger for Data Streams
  • Useful links
  1. Concepts
  2. Trigger
  3. Trigger for Data Streams

Trigger for Data Streams that sends messages to WebSocket connections

Written by
Yandex Cloud
Updated at November 17, 2026
View as Markdown
  • Roles required for the proper operation of a trigger for Data Streams
  • Format of the message from the trigger for Data Streams
  • Useful links

A trigger for Data Streams sends messages to WebSocket connections when data is sent to a stream.

A trigger for Data Streams requires service accounts to manage the stream and send messages to WebSocket connections. You can use the same service account for both operations.

For more information about creating a trigger for Data Streams, see Creating a trigger for Data Streams that sends messages to WebSocket connections.

Roles required for the proper operation of a trigger for Data StreamsRoles required for the proper operation of a trigger for Data Streams

  • To create a trigger, you need a permission for the service account under which the trigger runs the operation. This permission comes with the iam.serviceAccounts.user and editor roles or higher.
  • For the trigger to fire, service accounts need the following roles:
    • api-gateway.websocketBroadcaster for the folder containing the API gateway.
    • yds.admin for the stream that invokes the trigger when data is sent to it.

Format of the message from the trigger for Data StreamsFormat of the message from the trigger for Data Streams

The trigger for Data Streams receives and sends messages in JSON format only.

After the trigger fires, it will send a message with the messages array to WebSocket connections:

{
   "messages":[
      {
         "key1":"value1"
      },
      {
         "key2":"value2"
      }
   ]
}

Useful linksUseful links

  • Trigger for Data Streams that runs a Serverless Containers container
  • Trigger for Data Streams that runs a Cloud Functions function

Was the article helpful?

Previous
Trigger for budgets
Next
Email trigger
© 2026 Direct Cursus Technology L.L.C.