Template Preview API

Retrieve detailed preview information for a specific RCS template.
This endpoint returns template content, status, orientation, alignment, and all suggestion details.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
integer
required

The ID of the template to preview.

Headers
string
required

Enter your API key for authentication.

string

Optional bot ID. If not provided, the default bot configured on your panel will be used.
You can locate the nc_bot_id in the General Settings on the CPaaS >> Bot ID.

Responses

400

Returned for invalid authentication, incorrect content type, or missing/invalid template_id.

Invalid API Key:

{
    "errors": [
        {
            "message": "Authorization Failed, invalid token",
            "field": "api_key"
        }
    ]
}

Invalid Content Type:

{
    "errors": [
        {
            "message": "ContentType not valid",
            "field": "ContentType"
        }
    ]
}

Missing or Invalid Template ID:

{
    "errors": [
        {
            "message": "Template ID is required",
            "field": "template_id"
        }
    ]
}
404

Template not found.

{
    "status": "error",
    "message": "Template not found",
    "template_id": 9753
}
Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json