curl --location 'https://rest.qikberry.ai/v1/whatsapp/templates' \
--header 'x-phone-number: <WHATSAPP_BUSINESS_NUMBER>' \
--header 'Authorization: <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "test_template",
"language": "en",
"category": "marketing",
"parameter_format": "positional",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Dear {{1}}, Donald Technologies Private Limited",
"example": {
"header_text": [
"jack"
]
}
},
{
"type": "BODY",
"text": "Thanks for choosing our product, {{1}}! DONALD TECHNOLOGIES",
"example": {
"body_text": [
[
"jack"
]
]
}
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "COPY_CODE",
"text": "Copy offer code",
"example": [
"fLBponPDsqF0KQThzkrf"
]
},
{
"type": "URL",
"text": "Open Project",
"url": "https://www.lipsum.com/"
},
{
"type": "URL",
"text": "View Docs",
"url": "https://loremipsum.io/"
}
]
}
]
}'