API Gateway WebSocket Connection Service, REST: Connection.Send
Written by
Updated at December 9, 2025
Sends data to the specified connection.
HTTP request
POST https://apigateway-connections.api.cloud.yandex.net/apigateways/websocket/v1/connections/{connectionId}:send
Path parameters
|
Field |
Description |
|
connectionId |
string Required field. ID of the connection to which send. The maximum string length in characters is 50. |
Body parameters
{
"data": "string",
"type": "string"
}
|
Field |
Description |
|
data |
string (bytes) Required field. Data to send. The maximum string length in characters is 131072. |
|
type |
enum (DataType) Type of the sending data.
|
Response
HTTP Code: 200 - OK