Sending messages

The Channels API supports many of the features of Google RCS; however, due to the omni-channel nature of the API, there may be some differences between the Channels API message and the native Google RCS API.To send a Google RCS message, you must have an active Google RCS channel and perform an HTTP request to the following endpoint with a valid access key

Send a message

post

Send a message to a channel

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

channelIdstring · uuidRequired

The ID for a channel

Body
and
anyOptional
object · ChannelMessageCreateWithTemplateOptional
or
object · ChannelMessageCreateWithBodyOptional
Responses
post
/workspaces/{workspaceId}/channels/{channelId}/messages

Body

Template

You can send messages to users who have opted in to receiving messages from your Google RCS Agent and are also on a carrier that you have launched your Agent with.

The Channels API supports many of the features of Google RCS; however, due to the omni-channel nature of the API, there may be some differences between the Channels API message and the native Google RCS API. Here is an overview of the Google RCS message types and Channels API message types:

Google RCS API type
Channels API

basic message

image

video

location

rich messages + suggestions

rich card

carousel

Supported file types

Content Type
MIME type
Channels API

Image

image/jpeg, image/jpg, image/gif, image/png

Video

video/h263, video/m4v, video/mp4, video/mpeg, video/mpeg4, video/webm

File

application/pdf

Outbound messages

Text

Text message

Text message with reply buttons

Text message with postback actions

Text message with reply and postback actions

Image

Single image message

Single image message with text

Multiple image message

Single image message with postback actions

Single image message with label and reply actions

Single image message with label, postback and reply actions

Multiple images message with labels and postback actions

Multiple images message with reply actions

Multiple images message with labels, postback and reply actions

File

Single file message

Multiple files message

Location

With Coordinates

Single card with title, description and actions

Single card with image, title, description and actions

Multiple cards with title, description and actions

Multiple cards with image title, description and actions

Template

Basic text template with variable

Rich card template with button and variables

Last updated

Was this helpful?