{
"type": "text",
"header": {
"format": "text",
"content": "Your order {{order_id}}"
},
"body": "Hi {{name}}, your order {{order_id}} is on the way.",
"extra": [
{
"name": "John"
},
{
"order_id": "A001"
},
{
"product_name": "Widget"
},
{
"product_id": "P1001"
}
],
"footer": "Thanks",
"buttons": [
{
"type": "quick_reply",
"text": "OK"
},
{
"type": "phone",
"text": "Call us",
"phone_code": "+62",
"phone_number": "81234567890"
}
],
"carousel": [
{
"header": {
"format": "image",
"content": "https://example.com/images/product-1.png"
},
"body": "Product {{product_name}} is available.",
"buttons": [
{
"type": "url",
"text": "View",
"url": "https://example.com/products/{{product_id}}"
},
{
"type": "quick_reply",
"text": "More options"
}
]
}
],
"timestamp": 17325621234
}curl --location -g --request POST 'https://api.airudder.com/api/v1/omnichannel/template/{{id}}' \
--header 'X-AIRudder-Sign-Key: {{api_key}}' \
--header 'X-AIRudder-Sign;' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "text",
"header": {
"format": "text",
"content": "Your order {{order_id}}"
},
"body": "Hi {{name}}, your order {{order_id}} is on the way.",
"extra": [
{
"name": "John"
},
{
"order_id": "A001"
},
{
"product_name": "Widget"
},
{
"product_id": "P1001"
}
],
"footer": "Thanks",
"buttons": [
{
"type": "quick_reply",
"text": "OK"
},
{
"type": "phone",
"text": "Call us",
"phone_code": "+62",
"phone_number": "81234567890"
}
],
"carousel": [
{
"header": {
"format": "image",
"content": "https://example.com/images/product-1.png"
},
"body": "Product {{product_name}} is available.",
"buttons": [
{
"type": "url",
"text": "View",
"url": "https://example.com/products/{{product_id}}"
},
{
"type": "quick_reply",
"text": "More options"
}
]
}
],
"timestamp": 17325621234
}'{
"request_id": "68f7467729e0b317e6fa1b29f4f9a88d",
"code": 0,
"message": "Success"
}