action ably_publish_messages_to_channel { label: "Publish a message to a channel" description: "Publish a message to the specified channel" provider: ably method: POST path: "/channels/{channel_id}/messages" encoding: form input: { type: "object" description: "Message object." properties: { clientId: { type: "string" description: "The [client ID](https://www.ably.io/documentation/core-features/authentication#identified-clients) of the publisher of this message." } connectionId: { type: "string" description: "The connection ID of the publisher of this message." } data: { type: "string" description: "The string encoded payload, with the encoding specified below." } encoding: { type: "string" description: "This will typically be empty as all messages received from Ably are automatically decoded client-side using this value. However, if the message encoding cannot be processed, this attribute will contain the remaining transformations not applied to the data payload." } extras: { type: "object" description: "Extras object. Currently only allows for [push](https://www.ably.io/documentation/general/push/publish#channel-broadcast-example) extra." properties: { push: { type: "object" properties: { apns: { type: "object" description: "Extends and overrides generic values when delivering via APNs. [See examples](https://www.ably.io/documentation/general/push/publish#payload-structure)" properties: { notification: { type: "object" properties: { body: { type: "string" description: "Text below title on the expanded notification." } collapseKey: { type: "string" description: "Platform-specific, used to group notifications together." } icon: { type: "string" description: "Platform-specific icon for the notification." } sound: { type: "string" description: "Platform-specific sound for the notification." } title: { type: "string" description: "Title to display at the notification." } } } } } data: { type: "string" description: "Arbitrary [key-value string-to-string payload](https://www.ably.io/documentation/general/push/publish#channel-broadcast-example)." } fcm: { type: "object" description: "Extends and overrides generic values when delivering via GCM/FCM. [See examples](https://www.ably.io/documentation/general/push/publish#payload-structure)" properties: { notification: { type: "object" additionalProperties: true } } } notification: { type: "object" additionalProperties: true } web: { type: "object" description: "Extends and overrides generic values when delivering via web. [See examples](https://www.ably.io/documentation/general/push/publish#payload-structure)" properties: { notification: { type: "object" additionalProperties: true } } } } } } } id: { type: "string" description: "A Unique ID that can be specified by the publisher for [idempotent publishing](https://www.ably.io/documentation/rest/messages#idempotent)." } name: { type: "string" description: "The event name, if provided." } timestamp: { type: "integer" format: "int64" description: "Timestamp when the message was received by the Ably, as milliseconds since the epoch." } } } output: { type: "object" additionalProperties: true } }