Overview
SMSTAKE RCS Business Messaging is an HTTPS JSON API at https://api.smstake.com/v1/rcs/. Authenticate every request with a Bearer token. Use it to send text, rich cards and carousels, and to receive delivery and read events on your webhook. RCS display depends on the recipient's device, network and provider support. API access and the agent ID are issued after onboarding.
| API | Method | Endpoint |
|---|---|---|
| Single RCS send | POST | https://api.smstake.com/v1/rcs/send |
| Batch RCS send | POST | https://api.smstake.com/v1/rcs/send-batch |
Related guides: SMS API, RCS Business Messaging, SMSTAKE blog, and the DLR webhook integration guide.
Authentication
Send the API token on every call to https://api.smstake.com/v1/rcs/:
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
- Use HTTPS only.
- Store the token in an environment variable or secrets manager. Do not commit it to source control.
- Rotate the token from the SMSTAKE account, or contact support if it is exposed.
Single RCS send
Endpoint: POST https://api.smstake.com/v1/rcs/send
| Field | Required | Description |
|---|---|---|
to | Yes | Recipient number in E.164, for example +919876543210 |
agent_id | Yes | RCS agent ID issued for your brand |
type | Yes | text, card or carousel |
text | For text | Message body when type is text |
suggestions | No | Reply chips and suggested actions. See below |
card | For a card | Rich card object when type is card |
cards | For a carousel | Array of card objects when type is carousel |
client_ref | No | Your reference. It is echoed on the response and on webhooks |
Request examples
curl -X POST "https://api.smstake.com/v1/rcs/send" \
-H "Authorization: Bearer $SMSTAKE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"to": "+919876543210",
"agent_id": "your_rcs_agent_id",
"type": "text",
"text": "Your order ORD-2847 has been shipped.",
"client_ref": "order_ORD2847",
"suggestions": [
{ "type": "open_url", "text": "Track order", "url": "https://example.com/track/ORD-2847", "postback": "track_order" },
{ "type": "reply", "text": "Talk to support", "postback": "support" }
]
}'
import os, requests
resp = requests.post(
"https://api.smstake.com/v1/rcs/send",
headers={"Authorization": f"Bearer {os.environ['SMSTAKE_API_TOKEN']}"},
json={
"to": "+919876543210",
"agent_id": "your_rcs_agent_id",
"type": "text",
"text": "Your order ORD-2847 has been shipped.",
"client_ref": "order_ORD2847",
"suggestions": [
{"type": "open_url", "text": "Track order", "url": "https://example.com/track/ORD-2847", "postback": "track_order"},
{"type": "reply", "text": "Talk to support", "postback": "support"},
],
},
timeout=30,
)
print(resp.json())
const res = await fetch("https://api.smstake.com/v1/rcs/send", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SMSTAKE_API_TOKEN}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
to: "+919876543210",
agent_id: "your_rcs_agent_id",
type: "text",
text: "Your order ORD-2847 has been shipped.",
client_ref: "order_ORD2847",
suggestions: [
{ type: "open_url", text: "Track order", url: "https://example.com/track/ORD-2847", postback: "track_order" },
{ type: "reply", text: "Talk to support", postback: "support" }
]
})
});
console.log(await res.json());
Success response
Store message_id so you can match a later delivery or read webhook.
{
"status": "accepted",
"message_id": "msg_8f3k2j9x1m",
"channel": "rcs",
"to": "+919876543210",
"client_ref": "order_ORD2847"
}
Suggested actions
Add a suggestions array on a text message, or on each card. Each item is one chip.
| type | Fields | What the recipient sees |
|---|---|---|
open_url | text, url, postback | Opens an HTTPS URL |
dial | text, phone, postback | Opens the phone dialer |
reply | text, postback | Sends a reply chip back to your agent |
"suggestions": [
{ "type": "open_url", "text": "Shop now", "url": "https://example.com/sale", "postback": "shop_now" },
{ "type": "dial", "text": "Call us", "phone": "+918885466255", "postback": "call_support" },
{ "type": "reply", "text": "Send the catalogue", "postback": "catalogue" }
]
Rich cards
Set type to card and send a card object. cardMedia.contentInfo.fileUrl must be a public HTTPS image or video URL. Height is SHORT, MEDIUM or TALL.
{
"to": "+919876543210",
"agent_id": "your_rcs_agent_id",
"type": "card",
"client_ref": "promo_festive_2026",
"card": {
"title": "Festive offers are live",
"description": "Save on selected products this weekend.",
"cardMedia": {
"height": "MEDIUM",
"contentInfo": {
"fileUrl": "https://cdn.example.com/rcs/festive-banner.jpg",
"forceRefresh": false
}
},
"suggestions": [
{ "type": "open_url", "text": "Shop now", "url": "https://example.com/sale", "postback": "shop_now" },
{ "type": "dial", "text": "Call us", "phone": "+918885466255", "postback": "call_support" }
]
}
}
curl -X POST "https://api.smstake.com/v1/rcs/send" \
-H "Authorization: Bearer $SMSTAKE_API_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @rich-card.json
import json, os, requests
payload = json.load(open("rich-card.json", encoding="utf-8"))
resp = requests.post(
"https://api.smstake.com/v1/rcs/send",
headers={"Authorization": f"Bearer {os.environ['SMSTAKE_API_TOKEN']}"},
json=payload,
timeout=30,
)
print(resp.json())
import { readFile } from "node:fs/promises";
const payload = JSON.parse(await readFile("rich-card.json", "utf8"));
const res = await fetch("https://api.smstake.com/v1/rcs/send", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SMSTAKE_API_TOKEN}`,
"Content-Type": "application/json"
},
body: JSON.stringify(payload)
});
console.log(await res.json());
Carousels
Set type to carousel and send a cards array. Each card uses the same title, description, cardMedia and suggestions fields as a single rich card. The recipient swipes between cards.
{
"to": "+919876543210",
"agent_id": "your_rcs_agent_id",
"type": "carousel",
"client_ref": "carousel_festive",
"cards": [
{
"title": "Festive hamper",
"description": "Gift boxes, ready to ship.",
"cardMedia": {
"height": "MEDIUM",
"contentInfo": { "fileUrl": "https://cdn.example.com/rcs/hamper.jpg", "forceRefresh": false }
},
"suggestions": [
{ "type": "open_url", "text": "View hamper", "url": "https://example.com/hamper", "postback": "view_hamper" }
]
},
{
"title": "Store pickup",
"description": "Collect from a nearby store this weekend.",
"cardMedia": {
"height": "MEDIUM",
"contentInfo": { "fileUrl": "https://cdn.example.com/rcs/store.jpg", "forceRefresh": false }
},
"suggestions": [
{ "type": "reply", "text": "Find a store", "postback": "find_store" },
{ "type": "dial", "text": "Call us", "phone": "+918885466255", "postback": "call_support" }
]
}
]
}
curl -X POST "https://api.smstake.com/v1/rcs/send" \
-H "Authorization: Bearer $SMSTAKE_API_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @carousel.json
import json, os, requests
payload = json.load(open("carousel.json", encoding="utf-8"))
resp = requests.post(
"https://api.smstake.com/v1/rcs/send",
headers={"Authorization": f"Bearer {os.environ['SMSTAKE_API_TOKEN']}"},
json=payload,
timeout=30,
)
print(resp.json())
import { readFile } from "node:fs/promises";
const payload = JSON.parse(await readFile("carousel.json", "utf8"));
const res = await fetch("https://api.smstake.com/v1/rcs/send", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SMSTAKE_API_TOKEN}`,
"Content-Type": "application/json"
},
body: JSON.stringify(payload)
});
console.log(await res.json());
Batch RCS send
Endpoint: POST https://api.smstake.com/v1/rcs/send-batch. Each item in messages uses the same fields as a single send, including text, card and carousel messages.
curl -X POST "https://api.smstake.com/v1/rcs/send-batch" \
-H "Authorization: Bearer $SMSTAKE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{ "to": "+919876543210", "agent_id": "your_rcs_agent_id", "type": "text", "text": "Hi Ananya, your appointment is confirmed for 4:30 PM.", "client_ref": "appt_1001" },
{ "to": "+919812345678", "agent_id": "your_rcs_agent_id", "type": "text", "text": "Hi Rohan, your appointment is confirmed for 5:00 PM.", "client_ref": "appt_1002" }
]
}'
import os, requests
resp = requests.post(
"https://api.smstake.com/v1/rcs/send-batch",
headers={"Authorization": f"Bearer {os.environ['SMSTAKE_API_TOKEN']}"},
json={"messages": [
{"to": "+919876543210", "agent_id": "your_rcs_agent_id", "type": "text", "text": "Hi Ananya, your appointment is confirmed for 4:30 PM.", "client_ref": "appt_1001"},
{"to": "+919812345678", "agent_id": "your_rcs_agent_id", "type": "text", "text": "Hi Rohan, your appointment is confirmed for 5:00 PM.", "client_ref": "appt_1002"},
]},
timeout=30,
)
print(resp.json())
const res = await fetch("https://api.smstake.com/v1/rcs/send-batch", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SMSTAKE_API_TOKEN}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
messages: [
{ to: "+919876543210", agent_id: "your_rcs_agent_id", type: "text", text: "Hi Ananya, your appointment is confirmed for 4:30 PM.", client_ref: "appt_1001" },
{ to: "+919812345678", agent_id: "your_rcs_agent_id", type: "text", text: "Hi Rohan, your appointment is confirmed for 5:00 PM.", client_ref: "appt_1002" }
]
})
});
console.log(await res.json());
Batch response
{
"status": "accepted",
"results": [
{ "client_ref": "appt_1001", "message_id": "msg_a1", "to": "+919876543210", "status": "accepted" },
{ "client_ref": "appt_1002", "message_id": "msg_a2", "to": "+919812345678", "status": "accepted" }
]
}
Delivery and read webhooks
Register an HTTPS URL on the SMSTAKE account. SMSTAKE posts delivery and read events as JSON. Return 200 OK as soon as the event is stored. When signing is enabled, verify X-SMSTAKE-Signature against the raw body before you trust the payload. Deduplicate on message_id plus event.
| Event | When it is sent |
|---|---|
message.delivered | The RCS message reached the recipient's device |
message.read | The recipient opened the message. Read receipts depend on the device |
message.delivered
POST https://yourapp.com/webhooks/smstake/dlr
Content-Type: application/json
X-SMSTAKE-Signature: sha256=<hex-encoded HMAC-SHA256 of the raw body>
{
"event": "message.delivered",
"message_id": "msg_8f3k2j9x1m",
"channel": "rcs",
"to": "+919876543210",
"agent_id": "your_rcs_agent_id",
"status": "delivered",
"client_ref": "order_ORD2847",
"submitted_at": "2026-10-21T14:15:02+05:30",
"delivered_at": "2026-10-21T14:15:04+05:30"
}
message.read
{
"event": "message.read",
"message_id": "msg_8f3k2j9x1m",
"channel": "rcs",
"to": "+919876543210",
"agent_id": "your_rcs_agent_id",
"status": "read",
"client_ref": "order_ORD2847",
"read_at": "2026-10-21T14:16:11+05:30"
}
Receiver patterns for Node.js and Python are in the DLR webhook integration guide.
HTTP status
| HTTP status | Meaning |
|---|---|
| 200 / 202 | Request accepted for processing |
| 400 | Invalid JSON or a required field is missing |
| 401 | Missing or invalid Bearer token |
| 403 | Token is valid but not allowed for this agent or action |
| 429 | Rate limit exceeded. Retry with backoff |
| 5xx | Temporary server or upstream issue. Retry with backoff |