Skip to main content

获取模板详情

域名

  • https://api.incsapp.com

请求路由

  • /external/templates/rcs/{template_id}

请求方式

  • GET

请求头

  • certification-code: f484bd42-4a0c-39d....

请求参数

响应

成功响应示例

  • 响应说明参见模板资源说明
{
    "status": "success",
    "code": 200,
    "message": "",
    "data": {
        "template_id": "2217670951241515121",
        "name": "api_4_standalone_image",
        "type": "richcard",
        "status": "APPROVED",
        "content": {
            "orientation": "VERTICAL",
            "height": "SHORT",
            "standaloneCard": {
                "cardTitle": "Keep calm & BAT on!",
                "cardDescription": "Dear [name], time to participate in lucky draw and win prizes",
                "mediaUrl": "https://incs-test.oss-ap-southeast-1.aliyuncs.com/chat/videos/6943e9cea07d7.mp4",
                "thumbnailUrl": "",
                "suggestions": [
                    {
                        "suggestionType": "reply",
                        "text": "Avail offer [offer_name]",
                        "postbackData": "offer_reply"
                    }
                ]
            }
        },
        "created_time": 1767095125,
        "updated_time": 1767337727,
        "status_updated_time": 1767337724
    },
    "error": {}
}

失败响应示例

{
    "status": "error",
    "code": 400,
    "message": "The template is not found.",
    "data": {},
    "error": {}
}