GuideLab API

List Whats App Templates

List WhatsApp message templates for the current organization with pagination, search, and status filtering.

GET
/whatsapp-templates

List WhatsApp message templates for the current organization with pagination, search, and status filtering.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Query Parameters

page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value <= 100
Default20
search?string
status?string

Value in

  • "draft"
  • "pending"
  • "approved"
  • "rejected"

Response Body

application/json

curl -X GET "https://example.com/whatsapp-templates"
{  "data": [    {      "id": "string",      "organizationId": "string",      "name": "string",      "displayName": "string",      "description": "string",      "language": "string",      "category": "string",      "contentType": "string",      "body": "string",      "variables": {        "property1": "string",        "property2": "string"      },      "status": "string",      "contentSid": "string",      "rejectionReason": "string",      "lastSyncedAt": "string",      "lastSyncError": "string",      "usageCount": 0,      "successfulSendCount": 0,      "providerScope": "unbound",      "accountState": "unbound",      "providerOperation": {        "id": "string",        "phase": "ready_create",        "state": "pending"      },      "compatibleEvents": [        "order_received_lab"      ],      "selectedEvents": [        "order_received_lab"      ],      "createdBy": "string",      "createdAt": "string",      "updatedAt": "string"    }  ],  "pagination": {    "page": 0,    "limit": 0,    "total": 0,    "totalPages": 0  }}
Empty
Empty