Skip to main content

Send RCS with resending by SMS

Example of request to send RCS message with text, image, button and resend the message by SMS in case of failure to deliver.

URI: /api/json.php

All requests to API are sent in JSON format using the POST method.

Header parameters

Requests must contain header Content-Type: application/json, otherwise, the request will be considered invalid even if it has valid JSON.

Request example

{
"auth": "bb56a4369eb19***cfec6d1776bd25",
"data": [
{
"type": "rcs+sms",
"id": 100500,
"phone": 380971234567,
"sms_signature": "SMSTest",
"sms_message": "Message text to be sent via SMS",
"rcs_signature": "RCSTest",
"rcs_message": "Message text to be sent via RCS",
"rcs_image": "https://url.com/storage/images/image.png",
"rcs_link": "https://redirect.url",
"rcs_button": "Button caption",
"rcs_lifetime": 172800,
"short_link": true,
"hook": "https://example.org/webhook/url.php"
}
]
}

Response examples

HTTP Status Code: 200
Content Type: JSON application/json

{
"success": true,
"data": [
{
"success": true,
"data": {
"id": 100500,
"msg_id": 123456789,
"data": 1,
"parts": 1
}
}
]
}