Sending an iMessage
Send rich iMessage content to your users with automatic fallback to SMS when iMessage is not available.iMessage messages require the recipient to have an Apple device with iMessage enabled. If iMessage is not available, you can configure automatic fallback to SMS.
Typing Indicators
Show typing indicators to create a more interactive messaging experience. Start typing indicator:Parameters
imessage.send(params)
The recipient’s phone number in E.164 format (e.g., “+1234567890”).
The message content to send via iMessage.
Optional leased phone number to use as the sender. Must be a number you have leased from Contiguity.
Fallback configuration for when iMessage is not available.
Array of attachment URLs to include with the message. Supports images and other media.
Response
Unique identifier for the sent iMessage, used for tracking delivery status.
Request metadata including ID, timestamp, and API version.
imessage.typing(params)
The recipient’s phone number in E.164 format (e.g., “+1234567890”).
The typing indicator action. Options:
"start"
to show typing, "stop"
to hide typing.Optional leased phone number to use as the sender.
Response
Current status of the typing indicator action (e.g., “started”, “stopped”).
Request metadata including ID, timestamp, and API version.