What you need
1
An approved RCS sender
An RCS sender is the branded identity (name, logo, colour, contact details) that recipients see. Create one with Create an RCS sender, test it on test devices, then request a launch per country. The RCS senders page walks through the lifecycle.
2
Use the sender as the from value
For
channel: "rcs", from is usually the sender’s senderName. A number on your account is also accepted as from.3
Decide on SMS fallback
Set
failoverToSms: true to send text as SMS when the RCS platform rejects the message. The SMS goes out from the same from. See Fall back to SMS.Send an RCS message with buttons
Response - 201 Created
Request fields for RCS
Suggestion buttons
Each entry inrcsSuggestions is one button under the message. text is the label the recipient sees (up to 25 characters). postbackData (up to 2048 characters, defaults to text) is sent to the RCS platform with the button. The remaining fields depend on type:
On a plain text message the
rcsSuggestions array is passed to the RCS platform as sent. With rcsTemplateName or rcsContent it is validated first: at most 11 suggestions, url must be http(s), phoneNumber must be E.164, and latitude/longitude must be in range.
Rich cards, carousels and templates
Besides text, you can send a rich card, a carousel of cards, or a saved template. Use one of these, not both:rcsContent- aCARDorCAROUSELsent inline:{"type": "CARD" | "CAROUSEL", "content": {...}}. It is not reviewed in advance.rcsTemplateName(withrcsTemplateVariables) - an approved template of thefromsender, of typeTEXT,CARDorCAROUSEL. Only templates with statusAPPROVEDorAPPROVED_PARTIALLYcan be sent.rcsTemplateVariablesis an object of strings that fills the template’s{{name}}placeholders; every placeholder needs a value and every value needs a placeholder.
channel: "rcs", and both cannot be combined with mediaUrls or a future scheduledAt. text becomes the SMS fallback text and is required when failoverToSms is true. rcsSuggestions, when set, appear under the card or carousel; a TEXT template carries its own suggestions instead.
cURL
Content shape and limits
A card is
{"title", "description", "media", "suggestions"}:
- It needs a
titleormedia.titleis up to 200 characters,descriptionup to 2000. mediais{"file": {"url"}, "thumbnail": {"url"}, "height": "SHORT" | "MEDIUM" | "TALL"}; URLs must behttp(s),heightdefaults toMEDIUM.- Up to 4
suggestionsper card, with the same rules asrcsSuggestions.
400 with the field in error, for example {"error": "rcsContent: contents: a carousel needs 2-10 cards, got 1"}.
Fall back to SMS
WithfailoverToSms: true, when the RCS platform rejects the send at the time of your request, Vobiz sends text as SMS from the same from, through the same route. The result is a single message record with channel: "sms" and status: "sent", and the call returns 201 Created. Buttons, cards and media are RCS features and are left out of the SMS.
- The fallback happens only when the send is rejected immediately. A message the RCS platform accepts and that later fails or is not delivered is not resent as SMS.
- The SMS uses the same
from. US and Canadian carriers require a registered number as the SMS sender, so for recipients in the US and Canada the fallback only works whenfromis a number on your account, not a sender name. - The fallback respects SMS opt-outs: a recipient opted out of SMS does not get it.
failoverToSms, a rejected RCS send is stored with status: "failed" and the reason in errorMessage, and the call returns 202 Accepted.
An RCS message that falls back to SMS is billed as SMS.
Check reachability first
RCS reachability asks the RCS platform whether a number can receive RCS from your sender. Use it to pick RCS or SMS before you send, or to decide whether to spend on rich media.cURL
Response - 200 OK
from and to are both required (400 {"error":"from and to are required"}). from must be an RCS sender so the request can be routed to the RCS platform.
Receive button taps and replies
When a recipient taps aREPLY button or types a reply, Vobiz stores an inbound message with direction: "in" and status: "received" in the conversation between your sender and that number. A button tap arrives with the button’s text. postbackData is not currently included on inbound messages, so give buttons distinct labels if you need to tell them apart.
Receive these in real time with the message.received webhook event or over the WebSocket.
Statuses
RCS uses the same statuses as SMS:sent, delivered, failed, unknown for outbound and received for inbound, with statusHistory on Retrieve a message. An RCS send is a single segment. See SMS statuses.
Before you go live
RCS senders
Create and verify the sender you send from.
Compliance overview
Register the numbers your SMS fallback uses.
Related
RCS senders
Register and manage the branded sender your messages come from.
Send a message
Every request field, response and error code.
RCS reachability
Endpoint reference for the reachability check.
Conversations
Where replies and button taps are stored.