Template Preview API

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

Query Params
integer
required

The ID of the template to preview.

Headers
string
required

Enter your API key for authentication.

string
required

Must be set to application/json.

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

{ "status": "success", "message": "Data fetched successfully", "template_id": 9753, "data": { "template_name": "test_half", "template_type": "text_message", "template_status": "auto-approved", "template_content": "Hello welocme to netcore", "orientation": "", "alignment": "", "height": "", "width": "", "suggestion_details": [ { "suggestion_type": "2", "suggestion": "{\"displayText\":\"Visit half\",\"postback\":\"Visit half\",\"url\":\"https://www.netcorecloud.com/\",\"webview\":\"Half\"}" }, { "suggestion_type": "1", "suggestion": "{\"displayText\":\"Click here\",\"postback\":\"Click here\"}" }, { "suggestion_type": "8", "suggestion": "{\"displayText\":\"Visit Tall\",\"postback\":\"Visit Tall\",\"url\":\"https://www.netcorecloud.com\",\"domain\":\"https://qa.nctrckg.com\",\"suggestionAttr\":\"[button_3_url]\",\"webview\":\"Tall\"}" }, { "suggestion_type": "2", "suggestion": "{\"displayText\":\"Visit Full\",\"postback\":\"Visit Full\",\"url\":\"https://www.abcccccc.com/\",\"webview\":\"Full\"}" }, { "suggestion_type": "2", "suggestion": "{\"displayText\":\"Visit Default\",\"postback\":\"Visit Default\",\"url\":\"https://www.netcorecloud.com/\"}" }, { "suggestion_type": "4", "suggestion": "{\"displayText\":\"Get Location\",\"postback\":\"Get Location\",\"latitude\":\"23.455\",\"longitude\":\"54.566\",\"label\":\"Netcore\"}" } ], "created_date": "2025-11-07 18:41:08", "updated_date": "2025-11-07 18:45:00" } }

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
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json