Skip to main content
flag
Mon - Fri   10:00 – 18:00

List Templates

API Documentation / WhatsApp / List Templates

Base URL for your account: https://cpaas.studio

GET /api/whatsapp/v1/templates

Your templates with their status and whether they can be sent now.

Parameters

Param Type Required Notes
status string no approved, pending, rejected, paused, …
category string no marketing, utility, authentication.

Request example

curl -X GET "https://cpaas.studio/api/whatsapp/v1/templates" \
  -H "X-API-KEY: cpk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Success response (data)

{
    "templates": [
        {
            "name": "order_update",
            "language": "en",
            "category": "utility",
            "status": "approved",
            "sendable": true,
            "quality": "green",
            "header_format": "none",
            "header": null,
            "body": "Hi {{1}}, order {{2}} has shipped.",
            "footer": null,
            "buttons": [],
            "channel": "WCH54DZ7M7M5V"
        }
    ],
    "pagination": {
        "page": 1,
        "per_page": 50,
        "total": 1,
        "total_pages": 1
    }
}

Need more context? See Getting started for authentication, the response envelope, and the full error-code reference.