List WhatsApp Templates


This request returns a list of WhatsApp templates.
End users only get the WhatsApp templates that can be send by this user.

Resource

GET /whatsapptemplates

Payload

None

Context

Authorization

User

Errors

Example

Request
GET https://xelion.nl/api/v1/master/whatsapptemplates
Response
{
    "data": [
        {
            "object": {
                "commonName": "multi",
                "oid": "2022408",
                "objectType": "WhatsAppTemplate"
            },
            "links": [
                {
                    "rel": "self",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "commonName": "test",
                "oid": "2022436",
                "objectType": "WhatsAppTemplate"
            },
            "links": [
                {
                    "rel": "self",
                    "method": "GET"
                }
            ]
        }
    ],
    "meta": {
        "links": [
            {
                "rel": "refresh",
                "href": "https://xelion.nl/api/v1/master/whatsapptemplates",
                "method": "GET"
            },
            {
                "rel": "next",
                "href": "https://xelion.nl/api/v1/master/whatsapptemplates?after=2022436",
                "method": "GET"
            },
            {
                "rel": "previous",
                "href": "https://xelion.nl/api/v1/master/whatsapptemplates?before=2022408",
                "method": "GET"
            }
        ],
        "paging": {
            "previousId": "2022408",
            "nextId": "2022436"
        }
    }
}