RCS Business Messaging API
RCS on Azmarq is Google Rich Communication Services: branded chat with text, rich cards, carousels, and suggestion chips. Send from the portal, or from your systems with an API key.
$API_BASE_URL is https://api.azmarq.com. Authenticate with header apikey — not a portal login token. Sends use an approved bot (botId) and usually an approved template (templateName). Store messageId to match RCS webhooks.
Replies can be handled in Team Inbox. Keyword bots for RCS are Automations. Audiences come from My CDP.
What RCS is
RCS is the next step after SMS on Android (and other RCS-capable devices): your brand name, logo, and rich layout appear in the native Messages app.
| Building block | What it is |
|---|---|
| Bot / sender | The brand that sends. API field botId. Created under Manage Sender ID |
| Template | The layout you send. Types: text, standalone (one rich card), carousel (several cards) |
| Suggestions / chips | Tappable replies or actions under the message |
| Capability check | Confirms the handset can receive RCS before you spend a branded send |
Customers use RCS to:
- Broadcast from the portal (compose + file bulk).
- Send from their systems with an API key.
- Manage bots, templates, capability checks, opt-in, blocklist, coupons, DLR webhooks, and reports.
- Fall back to SMS or WhatsApp when RCS is not available.
- Reply in Team Inbox (RCS is a first-class inbox channel).
Wallet credits are deducted per message. Blocked numbers are skipped.
Portal prefix: /google-rcs-sms/...
Get ready before sending
| Setup | Where | Why |
|---|---|---|
| Wallet balance | User wallet | RCS is billed from credits |
| RCS bot / sender | RCS → Utility → Manage Sender ID | botId on the API; brand name, logo, hero image |
| Approved template | RCS → Utility → Manage Template | Types: text, standalone (rich card), carousel |
| Gateway / route | Assigned to the account | Portal gatewayId |
| API key | System → Developer → API Key | Header apikey |
| Capability check (optional) | Utility → RCS Numbers | Confirm the handset supports RCS |
API keys can have an IP allowlist and priority. Inactive users or keys are rejected.
Portal tools
Menu labels can vary by role. These are the RCS screens.
Broadcast
| Tool | What you do |
|---|---|
| Compose / Broadcast | One campaign: audience, bot, template, variables, schedule, split send |
| Bulk file | CSV/Excel with a mobile column (mobileNumberHeader) plus optional dynamic media / suggestion / postback columns |
Audience: manual numbers, groups, categories, tags, CDP segments / sources, file upload. Flags: excludeBlockedNumbers, includeDuplicate, cdpAudience.
Campaign extras: campaignName, dateTime / scheduleTimes, isSplit + batchSplit + timeSplit, fallbackId plus optional sms / whatsapp fallback objects, metaData (max 10 keys, 1–20 chars each), template variables (isVarIncluded, content, messageData, dynamic headers).
Utilities
| Tool | What it is |
|---|---|
| Manage Sender ID | Bots / brands (bot id, assistant id, images, status) |
| Manage Template | Create/list/update; types text, standalone, carousel; media Image / Video / File; rich text |
| RCS Numbers | Capability check (single or CSV/XLSX) |
| Webhook / DLR | Push delivery + optional inbound URL (endPoint, header, botId, endPointIncomingMessage) |
| Blocklist | Do-not-send numbers |
| Opt-in / Opt-out | Keywords and auto-replies per bot |
| Coupons | Code pools for template variables |
Reports
| Report | Use |
|---|---|
| Message report | Campaign list (bot, template, gateway, dates) |
| Message logs / number report | Per-recipient status |
| Inbound report | User replies |
| Action report | Chip / suggestion taps |
| Download / MIS | Exports |
| Failed details / re-push | Retry failed |
| Schedule | Cancel or update scheduled time |
Developer setup
- Create an API key under System → Developer → API Key. See Authentication.
- Optionally restrict the key with an IP allowlist.
- Copy
$API_BASE_URLfrom this page — it is white-label / environment specific. - Prefer POST + JSON.
- Pass the key as header
apikey, and you may also sendapikeyin the JSON body.
Send URL for this environment: https://api.azmarq.com/v1/rcs.
Identity of a template is templateName, not a numeric template id. Full card layouts: RCS templates. Extra send examples: Send RCS.
Send RCS
POST $API_BASE_URL/v1/rcs. This is the primary send.
Required
- Name
apikey- Type
- string
- Description
Developer API key (header or body).
- Name
botId- Type
- string
- Description
RCS bot / sender.
- Name
number- Type
- string
- Description
Destination mobile.
- Name
templateName- Type
- string
- Description
Template name registered on that bot.
Optional
- Name
type- Type
- string
- Description
Message type.
- Name
content- Type
- array
- Description
Variables / rich content.
- Name
campaignName- Type
- string
- Description
Report label.
- Name
mid- Type
- string
- Description
Customer message id.
- Name
meta- Type
- object
- Description
Extra metadata object.
Request
curl --location --request POST 'https://api.azmarq.com/v1/rcs' \
--header 'Content-Type: application/json' \
--header 'apikey: YOUR_API_KEY' \
--data-raw '{
"botId": "YOUR_BOT_ID",
"number": "91xxxxxxxxxx",
"templateName": "welcome_card",
"campaignName": "launch",
"content": [],
"meta": {}
}'Response
{
"id": "58d63c02-XXXX-XXXX-XXXX-XXXXbb39453",
"data": [
{
"recipient": "91xxxxxxxxxx",
"messageId": "58d63c02-XXXXX-XXXXX-XXXXX-XXXX9bb39453:1"
}
],
"totalCount": 1,
"message": "Message Sent Successfully!",
"error": null
}
HTTP 200 with "error": null means the API accepted the job. Handset delivery arrives later on reports and the DLR webhook.
Other send APIs
Engage-style
POST $API_BASE_URL/v1/rcs/messages
| Field | Required | Meaning |
|---|---|---|
apikey | yes | API key |
botId | yes | RCS bot |
mobile_number | yes | Destination |
template | yes | Template name |
text | yes | Text body |
type | no | Message type |
campaignName | no | Report label |
Generic message
POST $API_BASE_URL/v1/rcs/generic-message
| Field | Required | Meaning |
|---|---|---|
apikey | yes | API key |
botId | yes | RCS bot |
mobile_number | yes | Destination |
message | yes | Message body |
callback_data | no | Your correlation data |
campaignName | no | Report label |
Prefer /v1/rcs with templateName for branded cards and carousels.
Templates over API
Identity is templateName (not a template id). Auth is the same API key. Rich layouts and samples: RCS templates.
| Method | Path | Purpose |
|---|---|---|
| POST | /v1/rcs/template | Create |
| PUT | /v1/rcs/template | Update |
| DELETE | /v1/rcs/template | Delete by templateName |
| GET | /v1/rcs/template | List (apikey header) |
| GET | /v1/rcs/template/:templateName | Get one |
| POST | /v1/rcs/template/get | Get by body templateName |
Create body: apikey, botId (array), templateName, templateType (text | standalone | carousel), mediaType, isRichText, plus content or templateContent (rich card / carousel JSON).
Request
curl --location --request POST 'https://api.azmarq.com/v1/rcs/template' \
--header 'Content-Type: application/json' \
--header 'apikey: YOUR_API_KEY' \
--data-raw '{
"botId": [
"YOUR_BOT_ID"
],
"templateName": "welcome_card",
"templateType": "text",
"isRichText": false,
"content": {
"plainText": "Hi there, thanks for joining."
}
}'In the live JSON, numbered placeholders are written as {'{{1}}'}. Pending templates cannot be sent.
Fallback and capability
Not every handset is RCS-capable. Before a large campaign, run RCS Numbers (single check or CSV/XLSX). Capability is a hint, not a guarantee for every later send.
Campaign failover (WhatsApp or SMS after RCS Failed / Sent) is a separate portal product: create a rule under Fallback Routing, then Enable Fallback on compose. That is not an RCS capability check.
Configure DLR under Webhook / DLR: endPoint, header, botId, optional endPointIncomingMessage. Event shapes: RCS webhook.
Partner connectors
Supported integrations — not the core send API:
| Path | Integration |
|---|---|
POST /v1/rcs/webengage and /v1/rcs/webengage-message | WebEngage (rcsData, metadata) |
POST /v1/rcs/clevertap and /v1/rcs/clevertap-message | CleverTap (rcsContent, optional smsContent fallback) |
POST /v1/moengage/generic | MoEngage (messages[] with destination, rcs, sms, fallback_order) |
Inbound provider webhooks (/v1/rcs/webhook, /v1/rcs/karix/webhook) are platform endpoints. Customers do not call them; they receive events on the URL they configure in the portal.
Pages: WebEngage, CleverTap SMS, MoEngage RCS.
How a send behaves
- API key is resolved. The user must be active.
botIdmust exist on the account.templateNamemust exist (and typically be approved).- The number is validated. Blocklist numbers are skipped.
- Credits are checked. The job is queued.
- If the device is not RCS-capable, fallback to SMS / WhatsApp may apply when configured.
- Status appears in RCS reports and on the customer DLR webhook.
Typical errors
| Situation | What it means |
|---|---|
Missing / bad apikey | Invalid API key |
Unknown botId | Bot not on this account |
Missing templateName | Template name required |
| Unapproved / missing template | Register and approve the template first |
| Low wallet | Insufficient credits |
| Blocked number | Number skipped |
| Device not RCS-capable | Use capability check and/or SMS / WhatsApp fallback |
See Errors. Next: Send RCS, RCS templates, Team Inbox, Recipes.