Detail Message Templates
Untuk mengambil message templates, buat panggilan GET ke /message-templates/{{ MESSAGE_TEMPLATE_ID }} .
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/{{ MESSAGE_TEMPLATE_ID }}' \ -H 'Authorization: Bearer {{ API_TOKEN }}'
Response yang berhasil menyertakan objek dengan pengidentifikasi untuk message template:
{
"data": [
{
"id": {{ MESSAGE_TEMPLATE_ID }}
"name": "{{ MESSAGE_TEMPLATE_NAME }}",
"category": "{{ MESSAGE_TEMPLATE_CATEGORY }}",
"language": "{{ MESSAGE_TEMPLATE_LANGUAGE }}",
"status": "{{ MESSAGE_TEMPLATE_STATUS }}",
"quality": "{{ MESSAGE_TEMPLATE_QUALITY }}"
"components":[
{
"message template componenets"
}
],
"created_at": "{{ MESSAGE_TEMPLATE_CREATED_AT }}",
"updated_at": "{{ MESSAGE_TEMPLATE_UPDATED_AT }}",
}
]
}