Send RCS text, media, card and carousel messages through one endpoint, with tap-to-act buttons and automatic SMS or MMS failover.
/v5/message Auth required
What the endpoint does
RCS (Rich Communication Services) delivers branded, interactive messages natively in the recipient's messaging app: buttons, rich media, cards and swipeable carousels. All four RCS message types go to the same endpoint, and the messageType field tells the gateway how to read the request body.
| Type | Use it for | Limits |
|---|---|---|
RCS_TEXT |
Conversational messages, alerts and reminders, with optional quick-reply buttons. | Up to 10 choices. SMS failover. |
RCS_MEDIA |
A full-width image or video shown right in the message thread. | Up to 10 choices. MMS failover. |
RCS_CARD |
One card with a visual, a title, supporting text and action buttons. | Up to 4 choices. MMS failover. |
RCS_ |
Swipeable cards for browsing several offers, products or options. | Up to 10 cards, with up to 4 choices per card. MMS failover. |
source field must be your provisioned RCS sender, an alphanumeric brand name such as CONVEY.
Before you begin
Before you send your first RCS message, make sure you have:
- An active Aerialink account with an RCS-enabled connection.
- A provisioned RCS sender: an alphanumeric brand name such as
CONVEY. Contact your Aerialink account manager to register and activate one. See US RCS Registration for the carrier requirements. -
API credentials (username and password) for that connection, with the
message_write permission.
- For SMS or MMS failover: a phone number provisioned on the same connection as the RCS sender.
Authentication
Every request uses HTTP Basic Authentication. Send your connection's username and password, base64-encoded, in the Authorization header.
HTTP · Authorization header
Authorization: Basic {base64(username:password)}
Credentials are scoped to a connection and need the message_ permission. Get them from your Aerialink account portal, or ask your account manager. Authentication failures return error codes E100001 to E100005. See Aerialink API Resource Status Codes.
Request
Send a POST request to /v5/message with a JSON body. These headers are required:
| Header | Value |
|---|---|
Authorization |
Basic followed by your base64-encoded username:password. |
Content-Type |
application/ |
The smallest valid RCS message needs only four fields:
JSON · Minimal RCS text message
{
"messageType": "RCS_TEXT",
"source": "CONVEY",
"destination": "15559876543",
"messageText": "Hello from RCS!"
}
Message types
Each message type has its own required fields. Fields not listed for a type are not used by that type.
RCS text messages (RCS_TEXT)
A text message with optional quick-reply buttons. Use it for notifications, reminders and two-way conversations. If the recipient's device can't receive RCS, it can fall back to SMS.
| Field | Description |
|---|---|
messageTypestring · Required |
RCS_TEXT |
sourcestring · Required |
Your RCS sender (alphanumeric brand name). Max 50 characters. |
destinationstring · Required |
Recipient phone number. Max 50 characters. |
messageTextstring · Required |
Message content. Max 3,072 characters. |
callbackURLstring (URI) · Optional |
URL that receives delivery updates for this message. See Delivery callbacks. |
choicesarray · Optional |
Up to 10 choice objects. See Choices. |
smsFailoverobject · Optional |
SMS fallback if RCS delivery fails. See Failover. |
JSON · RCS text with three buttons and SMS failover
{
"messageType": "RCS_TEXT",
"source": "CONVEY",
"destination": "15559876543",
"messageText": "Would you like to confirm your appointment?",
"callbackURL": "https://your-server.com/rcs-callback",
"choices": [
{
"type": "REPLY",
"title": "Confirm",
"postbackData": "appointment_confirm"
},
{
"type": "REPLY",
"title": "Cancel",
"postbackData": "appointment_cancel"
},
{
"type": "OPEN_URL",
"title": "Reschedule",
"postbackData": "appointment_reschedule",
"url": "https://example.com/reschedule",
"application": "BROWSER"
}
],
"smsFailover": {
"enabled": true,
"failoverSource": "15551234567",
"fallbackText": "Reply YES to confirm your appointment."
}
}
RCS media messages (RCS_MEDIA)
A standalone image or video, shown full width in the thread. Use it to showcase a product, a promotion or any content that benefits from a visual. If the device can't receive RCS, it can fall back to MMS.
| Field | Description |
|---|---|
messageTypestring · Required |
RCS_MEDIA |
sourcestring · Required |
Your RCS sender. Max 50 characters. |
destinationstring · Required |
Recipient phone number. Max 50 characters. |
mediaUrlstring (URI) · Required |
URL of the media file. Max 2,048 characters. |
thumbnailUrlstring (URI) · Required |
URL of a thumbnail image. |
filenameOverridestring · Required |
Display filename for the media. Max 100 characters. |
callbackURLstring (URI) · Optional |
URL that receives delivery updates for this message. |
choicesarray · Optional |
Up to 10 choice objects. |
mmsFailoverobject · Optional |
MMS fallback if RCS delivery fails. |
JSON · RCS media with a button and MMS failover
{
"messageType": "RCS_MEDIA",
"source": "CONVEY",
"destination": "15559876543",
"mediaUrl": "https://example.com/promo-image.jpg",
"thumbnailUrl": "https://example.com/promo-thumb.jpg",
"filenameOverride": "promo.jpg",
"callbackURL": "https://your-server.com/rcs-callback",
"choices": [
{
"type": "OPEN_URL",
"title": "Shop Now",
"postbackData": "shop_now",
"url": "https://example.com/shop",
"application": "BROWSER"
}
],
"mmsFailover": {
"enabled": true,
"failoverSource": "15551234567",
"fallbackText": "Check out our new sale!",
"mediaUrl": "https://example.com/promo-fallback.jpg",
"subject": "New Sale"
}
}
RCS card messages (RCS_CARD)
One rich card that combines an image or video with a title, a description and up to 4 action buttons. Use it for promotions, product highlights or any message the recipient should act on.
RCS_CARD, every media field goes inside the media object: mediaUrl, thumbnailUrl, filenameOverride and choices. A card has no top-level media fields and no top-level choices array.
| Field | Description |
|---|---|
messageTypestring · Required |
RCS_CARD |
sourcestring · Required |
Your RCS sender. Max 50 characters. |
destinationstring · Required |
Recipient phone number. Max 50 characters. |
titlestring · Required |
Card title. Max 100 characters. |
descriptionstring · Required |
Card body text. Max 500 characters. |
heightstring · Required |
Height of the card image: SHORT (small image area), MEDIUM (standard) or TALL (large). |
mediaobject · Required |
Holds the card's media and buttons. |
media.string (URI) · Required |
URL of the card image or video. |
media.string (URI) · Optional |
URL of a thumbnail image. |
media.string · Optional |
Display filename. Max 100 characters. |
media.array · Optional |
Up to 4 choice objects. |
callbackURLstring (URI) · Optional |
URL that receives delivery updates for this message. |
mmsFailoverobject · Optional |
MMS fallback if RCS delivery fails. |
JSON · RCS card with two buttons and MMS failover
{
"messageType": "RCS_CARD",
"source": "CONVEY",
"destination": "15559876543",
"title": "Summer Sale: 30% Off",
"description": "Shop our biggest sale of the year. Limited time only.",
"height": "TALL",
"media": {
"mediaUrl": "https://example.com/summer-sale.jpg",
"thumbnailUrl": "https://example.com/summer-sale-thumb.jpg",
"filenameOverride": "summer-sale.jpg",
"choices": [
{
"type": "OPEN_URL",
"title": "Shop Now",
"postbackData": "card_shop_now",
"url": "https://example.com/sale",
"application": "BROWSER"
},
{
"type": "DIAL_PHONE",
"title": "Call Us",
"postbackData": "card_call",
"phoneNumber": "15551234567"
}
]
},
"callbackURL": "https://your-server.com/rcs-callback",
"mmsFailover": {
"enabled": true,
"failoverSource": "15551234567",
"fallbackText": "Summer Sale: 30% off! Visit example.com/sale",
"mediaUrl": "https://example.com/summer-sale-fallback.jpg",
"subject": "Summer Sale"
}
}
RCS carousel messages (RCS_CAROUSEL)
A horizontally scrollable row of 1 to 10 cards. Each card has its own image or video, title, description and up to 4 action buttons. Use it to present several products, options or offers in one message.
| Field | Description |
|---|---|
messageTypestring · Required |
RCS_ |
sourcestring · Required |
Your RCS sender. Max 50 characters. |
destinationstring · Required |
Recipient phone number. Max 50 characters. |
cardsarray · Required |
1 to 10 card objects. See the card object below. |
cardWidthstring · Optional |
Card width: SMALL or MEDIUM. Default MEDIUM. |
callbackURLstring (URI) · Optional |
URL that receives delivery updates for this message. |
mmsFailoverobject · Optional |
MMS fallback if RCS delivery fails. |
Each item in cards has these fields:
| Field | Description |
|---|---|
cardsstring · Required |
Card title. Max 100 characters. |
cardsstring · Required |
Card body text. Max 500 characters. |
cardsstring · Required |
SHORT, MEDIUM or TALL. |
cardsstring (URI) · Required |
URL of the card image or video. |
cardsstring (URI) · Optional |
URL of a thumbnail image. |
cardsstring · Optional |
Display filename. Max 100 characters. |
cardsarray · Optional |
Up to 4 choice objects for this card. |
JSON · RCS carousel with two cards and MMS failover
{
"messageType": "RCS_CAROUSEL",
"source": "CONVEY",
"destination": "15559876543",
"cardWidth": "MEDIUM",
"cards": [
{
"title": "Running Shoes",
"description": "Lightweight and responsive for your best run yet.",
"height": "MEDIUM",
"mediaUrl": "https://example.com/shoes.jpg",
"thumbnailUrl": "https://example.com/shoes-thumb.jpg",
"filenameOverride": "shoes.jpg",
"choices": [
{
"type": "OPEN_URL",
"title": "View Details",
"postbackData": "view_shoes",
"url": "https://example.com/shoes",
"application": "BROWSER"
},
{
"type": "REPLY",
"title": "Add to Cart",
"postbackData": "cart_shoes"
}
]
},
{
"title": "Training Jacket",
"description": "Wind-resistant fabric for all-weather training.",
"height": "MEDIUM",
"mediaUrl": "https://example.com/jacket.jpg",
"thumbnailUrl": "https://example.com/jacket-thumb.jpg",
"filenameOverride": "jacket.jpg",
"choices": [
{
"type": "OPEN_URL",
"title": "View Details",
"postbackData": "view_jacket",
"url": "https://example.com/jacket",
"application": "BROWSER"
},
{
"type": "REPLY",
"title": "Add to Cart",
"postbackData": "cart_jacket"
}
]
}
],
"callbackURL": "https://your-server.com/rcs-callback",
"mmsFailover": {
"enabled": true,
"failoverSource": "15551234567",
"fallbackText": "Check out our new arrivals at example.com/shop",
"mediaUrl": "https://example.com/arrivals-fallback.jpg",
"subject": "New Arrivals"
}
}
Choices
Choices are the interactive buttons shown beneath a message. Every choice needs type, title and postbackData. The type decides which other fields are required. All six choice types work on every RCS message type, including cards and carousel cards. How many you can send, and where the array goes, depends on the message type:
| Message type | Maximum | Where the array goes |
|---|---|---|
RCS_TEXT |
10 | Top-level choices
|
RCS_MEDIA |
10 | Top-level choices
|
RCS_CARD |
4 |
media., inside the media object |
RCS_ |
4 per card |
cards, on each card |
postbackData comes back to your webhook as callbackData. Use it to tell which button was pressed instead of parsing the label. Max 2,048 characters. Choice title is limited to 25 characters for every type.
Reply (REPLY)
A button that sends a predefined reply. Use it for yes/no questions, confirmations or simple guided flows.
| Field | Description |
|---|---|
typeRequired |
REPLY |
titleRequired |
Button label. Max 25 characters. |
postbackDataRequired |
Value returned to your webhook on tap. Max 2,048 characters. |
JSON · REPLY
{
"type": "REPLY",
"title": "Yes",
"postbackData": "confirm_yes"
}
Open a URL (OPEN_URL)
Opens a web page, either in the device's browser or in an overlay that keeps the recipient in the conversation.
| Field | Description |
|---|---|
typeRequired |
OPEN_URL |
titleRequired |
Button label. Max 25 characters. |
postbackDataRequired |
Value returned to your webhook on tap. Max 2,048 characters. |
urlRequired |
URL to open. Must be a valid URI. Max 2,048 characters. |
applicationRequired |
BROWSER opens the device's default browser. WEBVIEW opens an in-app overlay. |
webviewViewModeOnly with WEBVIEW
|
Required when application is WEBVIEW, and not valid with BROWSER. FULL covers the full screen, TALL about three quarters, HALF about half from the bottom. |
JSON · OPEN_URL in the browser
{
"type": "OPEN_URL",
"title": "Open in Browser",
"postbackData": "open_site",
"url": "https://example.com",
"application": "BROWSER"
}
JSON · OPEN_URL in a webview
{
"type": "OPEN_URL",
"title": "Quick View",
"postbackData": "quick_view",
"url": "https://example.com/product/123",
"application": "WEBVIEW",
"webviewViewMode": "HALF"
}
Dial a phone number (DIAL_PHONE)
Opens the recipient's dialer with a number filled in. Use it for customer support or call-back requests.
| Field | Description |
|---|---|
typeRequired |
DIAL_PHONE |
titleRequired |
Button label. Max 25 characters. |
postbackDataRequired |
Value returned to your webhook on tap. Max 2,048 characters. |
phoneNumberRequired |
Number to dial. Max 20 characters. |
JSON · DIAL_PHONE
{
"type": "DIAL_PHONE",
"title": "Call Support",
"postbackData": "call_support",
"phoneNumber": "18005551234"
}
Show a location (SHOW_LOCATION)
Drops a pin in the recipient's maps app at the coordinates you set. Use it to point to a store, a venue or a pickup spot.
| Field | Description |
|---|---|
typeRequired |
SHOW_ |
titleRequired |
Button label. Max 25 characters. |
postbackDataRequired |
Value returned to your webhook on tap. Max 2,048 characters. |
latitudeRequired |
-90 to 90, up to 6 decimal places. |
longitudeRequired |
-180 to 180, up to 6 decimal places. |
labelOptional |
Text for the map pin. |
JSON · SHOW_LOCATION
{
"type": "SHOW_LOCATION",
"title": "Find Our Store",
"postbackData": "show_store_location",
"latitude": 37.774929,
"longitude": -122.419416,
"label": "San Francisco Store"
}
Request the recipient's location (REQUEST_LOCATION)
Asks the recipient to share their current location with one tap. The shared coordinates arrive in the inbound webhook.
| Field | Description |
|---|---|
typeRequired |
REQUEST_ |
titleRequired |
Button label. Max 25 characters. |
postbackDataRequired |
Value returned to your webhook on tap. Max 2,048 characters. |
JSON · REQUEST_LOCATION
{
"type": "REQUEST_LOCATION",
"title": "Share My Location",
"postbackData": "location_requested"
}
Add a calendar event (CREATE_CALENDAR_EVENT)
Lets the recipient save an event to their device calendar with one tap. Use it for appointments, webinars or events.
| Field | Description |
|---|---|
typeRequired |
CREATE_ |
titleRequired |
Button label. Max 25 characters. |
postbackDataRequired |
Value returned to your webhook on tap. Max 2,048 characters. |
startTimeRequired |
Event start, as an ISO 8601 date and time. See the formats below. |
endTimeRequired |
Event end, in the same format as startTime. |
eventTitleRequired |
Calendar event title. Max 100 characters. |
descriptionOptional |
Calendar event description. Max 500 characters. |
startTime and endTime accept any of these ISO 8601 forms:
-
2030-03-03T15:00:00.000+01:00 : with a time zone offset
-
2030-03-03T15:00:00Z: UTC (Zulu time) -
2030-03-03T15:00:00-05:00: with a negative time zone offset
JSON · CREATE_CALENDAR_EVENT
{
"type": "CREATE_CALENDAR_EVENT",
"title": "Add to Calendar",
"postbackData": "event_added",
"startTime": "2030-06-15T14:00:00.000Z",
"endTime": "2030-06-15T15:00:00.000Z",
"eventTitle": "Product Demo",
"description": "Live product walkthrough with the Convey team"
}
Failover
Not every device supports RCS. When a message can't be delivered over RCS, the platform can resend it as SMS (for RCS_TEXT) or MMS (for RCS_MEDIA, RCS_CARD and RCS_). The failover message is sent when RCS delivery fails with status UNDELIVERABLE_ or UNDELIVERABLE_.
failoverSource must be a phone number provisioned on the same connection as the RCS sender.
SMS failover (RCS_TEXT only)
When enabled is true, every field in the object is required.
| Field | Description |
|---|---|
enabledboolean |
true turns failover on. |
failoverSourcestring |
SMS number on the same connection. Max 50 characters. |
fallbackTextstring |
Text of the fallback SMS. Max 160 characters. |
JSON · smsFailover
{
"smsFailover": {
"enabled": true,
"failoverSource": "15551234567",
"fallbackText": "Reply YES to confirm your appointment."
}
}
MMS failover (RCS_MEDIA, RCS_CARD, RCS_CAROUSEL)
When enabled is true, every field in the object is required.
| Field | Description |
|---|---|
enabledboolean |
true turns failover on. |
failoverSourcestring |
MMS-capable number on the same connection. Max 50 characters. |
fallbackTextstring |
Text of the fallback MMS. Max 160 characters. |
mediaUrlstring (URI) |
Media file for the fallback MMS. |
subjectstring |
MMS subject line. Max 100 characters. |
JSON · mmsFailover
{
"mmsFailover": {
"enabled": true,
"failoverSource": "15551234567",
"fallbackText": "Check out our new sale!",
"mediaUrl": "https://example.com/fallback.jpg",
"subject": "New Sale"
}
}
enabled set to false to keep it in your payload without activating it.
JSON · Failover included but turned off
{
"smsFailover": {
"enabled": false,
"failoverSource": "15551234567",
"fallbackText": "Fallback text (not sent unless enabled is true)"
}
}
Delivery callbacks
If a webhook is configured on your RCS connection in the portal, delivery updates go there by default. The callbackURL field is optional. When you send it, it overrides the portal webhook for that message only, which helps when several applications share one connection. Updates arrive as JSON.
For the payloads, including delivery receipts, replies, button taps and read receipts, see Aerialink RCS Webhooks.
Response
A successful request returns HTTP 200 and queues the message.
JSON · 200 OK
{
"status": "success",
"message": "Message successfully queued",
"data": {
"results": [
{
"messageGUID": "550e8400-e29b-41d4-a716-446655440000",
"destination": "15559876543",
"status": "success"
}
]
}
}
| Field | Description |
|---|---|
statusstring |
success when the message was queued. |
messagestring |
Human-readable result. |
data.array |
One entry per queued message. |
data.string |
Unique identifier for the message. |
data.string |
Recipient phone number as submitted. |
data.string |
Result for this recipient. |
messageGUID. Delivery callbacks use it to point back to the original message, and support will ask for it.
Errors
A request that fails validation returns HTTP 400. The data array lists one object per failed field, with field, description and message.
JSON · 400 Bad Request, missing field
{
"status": "error",
"message": "Missing or invalid parameters in body",
"data": [
{
"field": "messageText",
"description": "Message Text",
"message": "'messageText' is required"
}
]
}
Errors on nested fields use a dot path, such as media. or cards..
JSON · 400 Bad Request, nested field
{
"status": "error",
"message": "Missing or invalid parameters in body",
"data": [
{
"field": "media.choices.0.webviewViewMode",
"description": "webviewViewMode",
"message": "When choice type is OPEN_URL and application is WEBVIEW, 'webviewViewMode' is required"
}
]
}
A message with several invalid choices returns one entry per problem:
JSON · 400 Bad Request, choice errors
{
"status": "error",
"message": "Missing or invalid parameters in body",
"data": [
{
"field": "choices.1.postbackData",
"description": "postbackData",
"message": "'postbackData' is required"
},
{
"field": "choices.2.phoneNumber",
"description": "phoneNumber",
"message": "When choice type is DIAL_PHONE, 'phoneNumber' is required"
}
]
}
Carousel errors point to the card, and to the choice on that card:
JSON · 400 Bad Request, carousel card errors
{
"status": "error",
"message": "Missing or invalid parameters in body",
"data": [
{
"field": "cards.0.mediaUrl",
"description": "mediaUrl",
"message": "'mediaUrl' is required"
},
{
"field": "cards.1.choices.0.url",
"description": "url",
"message": "When choice type is OPEN_URL, 'url' is required"
},
{
"field": "cards.2.choices.1.latitude",
"description": "latitude",
"message": "When choice type is SHOW_LOCATION, 'latitude' is required"
}
]
}
For authentication error codes (E100001 to E100005) and message status codes, see Aerialink API Resource Status Codes.
Validation reference
The gateway enforces these limits:
| Field | Limit |
|---|---|
source |
50 characters. Must be a configured RCS sender, not a phone number. |
destination |
50 characters. |
messageText |
3,072 characters. |
mediaUrl |
2,048 characters. JPEG, JPG, GIF, PNG, H263, M4V, MP4, MPEG, MPEG4, WEBM. Max 100 MB. |
title (card) |
100 characters. |
description (card) |
500 characters. |
filenameOverride |
100 characters. RCS_MEDIA, media. on cards, and carousel cards. |
Choice title
|
25 characters. All choice types. |
Choice postbackData
|
2,048 characters. All choice types. |
Choice url
|
2,048 characters. OPEN_URL only. |
Choice phoneNumber
|
20 characters. DIAL_PHONE only. |
Choice latitude
|
-90 to 90. 6 decimal places. SHOW_ only. |
Choice longitude
|
-180 to 180. 6 decimal places. SHOW_ only. |
Choice eventTitle
|
100 characters. CREATE_ only. |
Choice description
|
500 characters. CREATE_ only. |
failoverSource (SMS or MMS) |
50 characters. |
fallbackText (SMS or MMS) |
160 characters. |
subject (MMS) |
100 characters. |
Key rules
Keep these rules in mind when you build a request:
-
sourcemust be a valid alphanumeric RCS sender configured on your connection. Phone numbers are not accepted. -
sourceanddestinationcannot be the same value. -
RCS_TEXTandRCS_MEDIAtake up to 10 choices.RCS_CARDtakes up to 4, and each carousel card takes up to 4. - A carousel holds up to 10 cards.
- On
RCS_CARD,mediaUrl,thumbnailUrl,filenameOverrideandchoicesgo inside themediaobject, not at the top level. -
webviewViewModeis required, and only valid, whenapplicationisWEBVIEW. -
failoverSourcemust be a number provisioned on the same connection as the RCS sender. - Undelivered messages expire after 24 hours.
Troubleshooting
Use this table to match a symptom to its fix:
| Symptom | Cause and fix |
|---|---|
400 error saying webviewViewMode is required. |
Root cause: An OPEN_URL choice uses WEBVIEW without a view mode.Fix: Add webviewViewMode (FULL, HALF or TALL). Leave it out when application is BROWSER. |
An RCS_CARD request fails validation on its media or buttons. |
Root cause: mediaUrl, thumbnailUrl, filenameOverride or choices were sent at the top level.Fix: Move them inside the media object. |
A request fails validation on choices. |
Root cause: More than 10 choices on text or media, or more than 4 on a card. Fix: Reduce the number of choices to the limit for the message type. |
The send is rejected because of source. |
Root cause: source is a phone number, or a sender that isn't on your connection.Fix: Use the RCS sender name provisioned on your account. Contact your account manager if you don't have one. |
| The failover message never arrives. |
Root cause: enabled is false, or failoverSource is on a different connection from the RCS sender.Fix: Set enabled to true and use a number provisioned on the same connection. |
| No delivery updates arrive. |
Root cause: No webhook is configured on the RCS connection and no callbackURL was sent, or the endpoint isn't reachable from the internet.Fix: Configure the connection webhook or send callbackURL, and use a public HTTPS endpoint that returns 2xx. |
| You can't tell which button the recipient tapped. |
Root cause: Your code is matching on the button label. Fix: Read callbackData in the webhook. It carries the choice's postbackData. |
What to explore next
- Aerialink RCS Webhooks: the delivery receipts, replies, button taps and read receipts sent to your server
- Aerialink API Resource Status Codes: message status codes, error codes and message states
- US RCS Registration: carrier requirements for registering an RCS sender
Need more help?
If you need further assistance, our support team is ready to help you.
Comments
0 comments
Please sign in to leave a comment.