Skip to main content
GET
/
v1
/
templates
List templates
curl --request GET \
  --url https://api.zavu.dev/v1/templates \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "name": "order_confirmation",
      "language": "en",
      "body": "Hi {{1}}, your order {{2}} has shipped.",
      "category": "UTILITY",
      "status": "draft",
      "variables": [
        "<string>"
      ],
      "headerType": "<string>",
      "headerContent": "<string>",
      "footer": "<string>",
      "buttons": [
        {
          "type": "<string>",
          "text": "<string>",
          "url": "<string>",
          "phoneNumber": "<string>"
        }
      ],
      "whatsapp": {
        "templateName": "<string>",
        "namespace": "<string>",
        "status": "<string>"
      },
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "nextCursor": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:50
Required range: x <= 100
cursor
string

Response

List of templates.

items
object[]
required
nextCursor
string | null