Sending messages

In order to send an Apple Messages message, you must have an active Apple Messages channel and perform a 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 Apple Messages business and have not closed the conversation with you. You can check if the conversation is open by making a request as follows. If a 200 is returned it means the conversation window is open. In addition this will return the latest capabilities of the user device (which determines what messages they can receive).

Get channel details for a contact

get

Retrieve channel information for a given contact.

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

contactIdstring · uuidRequired

The ID for a contact

Query parameters
contactIdentifierValuestringOptional

The receiver identifier value.

Responses
200

OK

application/json
get
/workspaces/{workspaceId}/channels/{channelId}/contacts/{contactId}

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

Apple Messages API Type
Channels API

Text

Attachment

Apple Maps Link

List Picker

Time Picker

Apple Pay

Authentication

iMessage App

Outbound Messages

Text

Text message

Sending a text message containing a link will split the message into a text + rich link and any text after. To ensure the card renders with a visual ensure the URL you are sending has og:image or og:video tags set

Text with reply buttons

Text with postback actions

Text with reply actions and summaryText

Setting text.metadata.summaryText will show the Summary Text in the users message list preview

Image

Single image message

Single image message with text

Single image message with reply actions

Single image message with postback actions

File

Single file message

Single file message with text

Single file message with reply actions

Single file message with postback actions

Location

with coordinates

with text

Template

Basic text template with variable

List picker template with section list variable

Time picker template with time slot list variable

Last updated

Was this helpful?