Retrieve Message Templates

To retrieve message templates, make a GET call to the /message-templates .

Example

Sample request:

curl -X GET 'https://waofficial.botika.online/api/whatsapp/v1/message-templates' \
-H 'Authorization: Bearer {{ API_TOKEN }}'

Query String Parameters

This is the query string can be used in message templates requests:

NameDescription

seacrh

Optional

Parameter for search the response from request.

type:

  • string

page

Optional

Parameter for paging the response from request.

type:

  • integer

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
    }
}

Copyright © 2023 Botika Teknologi Indonesia