Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample Cooper Template Body
{
"to": "RECEIVER_NUMBER",
"from": "SENDER_NUMBER",
"channel": "whatsapp",
"message_type": "custom",
"custom": {
"type": "template",
"template": {
"namespace": "3b6524f9_2ce0_4165_afe9_25ad81f5f781",
"name": "user_confirmation_cooper",
"language": {
"policy": "deterministic",
"code": "en"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "image",
"image": {
"link": "https://cooper-advertising.com/wp-content/uploads/image-social-facebook.jpg"
}
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "property evaluation"
},
{
"type": "text",
"text": "House"
},
{
"type": "text",
"text": "300sqm"
},
{
"type": "text",
"text": "Max Mustermann"
},
{
"type": "text",
"text": "max.mustermann@example.com"
}
]
},
{
"type": "button",
"sub_type": "quick_reply",
"index": 0,
"parameters": [
{
"type": "payload",
"payload": "verify_no_12345"
}
]
},
{
"type": "button",
"sub_type": "quick_reply",
"index": 1,
"parameters": [
{
"type": "payload",
"payload": "verify_yes_12345"
}
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment