Send RCS messages

Request

API Domain

API Route

Method

Headers

Parameters

The below two fields are common in all messages.

Parameter Type Mandatory Description Remarks
to string Yes Recipient phone number. Must be a digits-only format of country code + phone number. e.g: 628XXXXXXXXX
type string Yes Message type. Supported values are template message (template), and regular messages (text, image, video, document) which can be sent within 24 hours after the user replies. e.g: text

Samples

Template message without parameters
{
    "to": "85268411234",
    "type": "template",
    "template": {
        "name": "test_button_reply_1"
    }
}
Template message with parameters
{
    "to": "85268411234",
    "type": "template",
    "template": {
        "name": "test_button_reply_1",
        "parameters": {
            "username": "jack",
            "service_name": "promotion"
        }
    }
}
Text message
{
    "to": "85268411234",
    "type": "text",
    "text": "Hello"
}
Image message
{
    "to": "85268411234",
    "type": "image",
    "image": {
        "link": "https://static.incsapp.com/chat/images/header-98403274893.png"
    }
}
Video message
{
    "to": "85268411234",
    "type": "video",
    "video": {
        "link": "https://static.incsapp.com/chat/videos/abc.mp4"
    }
}
Document message
{
    "to": "85268411234",
    "type": "document",
    "document": {
        "link": "https://static.incsapp.com/chat/files/template.pdf"
    }
}

Response

Sample Successful Response

{
    "status": "success",
    "code": 200,
    "message": "",
    "data": {
        "msg_id": "019b8d8e-c4e7-73fe-b333-470c51e61f9f"
    },
    "error": {}
}

Sample Error Response

{
    "status": "error",
    "code": 10004,
    "message": "Template with the code [api_4_standalone_image] and bot [Wk3rZWBx435KKATY] received with insufficient custom params",
    "data": {},
    "error": {}
}

Revision #2
Created 27 February 2026 08:28:26 by zhengtian
Updated 27 February 2026 08:44:24 by zhengtian