Retrieve Message Templates
Untuk mengambil message templates, buat panggilan
Prerequisite
All API calls require authentication with
API_TOKEN Developers can authenticate their API calls with the API_TOKEN generated in App Dashboard > Phone Numbers > Detail > Api. Contoh
Sampel request:
curl -X GET 'https://waofficial.botika.online/api/whatsapp/v1/message-templates' \ -H 'Authorization: Bearer {{ API_TOKEN }}'
Query String Parameters
Berikut adalah query string yang bisa digunakan di message templates requests:
| Name | Description |
|---|---|
seacrh | Optional Parameter untuk mencari response dari request. tipe:
|
page | Optional Parameter untuk paginasi response dari request. tipe:
|
parameter.successResponse
{
"data": [
{
"id": {{ MESSAGE_TEMPLATE_ID }}
"name": "{{ MESSAGE_TEMPLATE_NAME }}",
"language": "{{ MESSAGE_TEMPLATE_LANGUAGE }}",
"status": "{{ MESSAGE_TEMPLATE_STATUS }}",
"components":[
{
"message template componenets"
}
],
"created_at" : "{{ MESSAGE_TEMPLATE_CREATED_AT }}"
}
],
"links": {
"first": "http://waofficial.botika.local/api/whatsapp/v1/message-templates?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "http://waofficial.botika.local/api/whatsapp/v1/message-templates",
"per_page": 10,
"to": 1
}
}