Skip to content
Chatwise
Skip to Content
Developer docs

List WhatsApp templates

GET /v1/whatsapp/templates. Lists the workspace's WhatsApp templates, newest first, with the variables and buttons each takes.

View as Markdown

GEThttps://api.chatwise.so/v1/whatsapp/templates

Lists the workspace's WhatsApp templates, newest first, with the variables and buttons each takes.

The API key needs the templates:read scope. See authentication and scopes.

Example

curl 'https://api.chatwise.so/v1/whatsapp/templates?limit=25&language=en_US&sendable=true' \
  -H "Authorization: Bearer $CHATWISE_API_KEY"

Query parameters

NameTypeDescription
limitintegerHow many to return, from 1 to 100. Default: 50.
cursorstringThe previous page's pagination.nextCursor. Repeat the same filters and order with it. At most 512 characters.
qstringText in the template's name, in any case. Spaces around it are ignored. Can't be blank, or contain NUL characters or unpaired surrogates. At most 200 characters.
namestringThe exact name, in any case. Finds every translation of a template. Spaces around it are ignored. Can't be blank, or contain NUL characters or unpaired surrogates. At most 100 characters.
languagestringThe language code, such as en_US. Spaces around it are ignored.
categorystringOnly templates in this category. One of UTILITY, MARKETING, AUTHENTICATION.
statusstringMeta's review status, such as APPROVED or PENDING, in any case. Spaces around it are ignored.
sendablestringtrue for templates the send routes can send, false for the others. Leave out for both.

Unknown query parameters are refused with a 400.

Response

200. A page of templates.

{
  "data": [
    {
      "id": "123456789012345",
      "name": "order_ready",
      "language": "en_US",
      "category": "UTILITY",
      "status": "APPROVED",
      "rejectionReason": null,
      "sendable": true,
      "parameterFormat": "NAMED",
      "requiresOtp": false,
      "authentication": null,
      "components": {
        "header": null,
        "body": {
          "text": "Your order {{order_number}} is ready to collect.",
          "variables": [
            "order_number"
          ]
        },
        "footer": null,
        "buttons": []
      },
      "unsupportedReason": null,
      "createdAt": "2026-11-19T09:00:00.000Z",
      "updatedAt": "2026-11-19T09:05:00.000Z"
    }
  ],
  "pagination": {
    "nextCursor": null
  }
}
FieldTypeDescription
data[].idstringThe template's id: Meta's, or Chatwise's for an older template without one. Send it as templateId.
data[].namestringThe template's name.
data[].languagestringThe template's language code, such as en_US.
data[].categorystring or nullThe template's category.
data[].statusstring or nullMeta's review status, such as APPROVED, PENDING, REJECTED or PAUSED.
data[].rejectionReasonstring or nullWhy Meta rejected it, when it is rejected.
data[].sendablebooleanWhether the send routes can send it: approved, with a layout they support.
data[].parameterFormatstring or nullHow its variables are written. Null without variables.
data[].requiresOtpbooleanWhether sending it needs a one-time code, as the otp value in templateParams.
data[].authenticationobject or nullSettings of an authentication template. Otherwise null.
data[].authentication.addSecurityRecommendationboolean or nullWhether it tells the customer not to share the code.
data[].authentication.codeExpirationMinutesnumber or nullHow long it says the code is valid.
data[].componentsobjectWhat the template contains.
data[].components.headerobject or nullThe header, if any.
data[].components.header.formatstringTEXT, IMAGE, VIDEO or DOCUMENT.
data[].components.header.textstring or nullThe text of a text header.
data[].components.header.variablesarray of stringsThe header's variables.
data[].components.bodyobjectThe body.
data[].components.body.textstring or nullThe body's text.
data[].components.body.variablesarray of stringsThe body's variables.
data[].components.footerstring or nullThe footer's text, if any.
data[].components.buttonsarray of objectsThe buttons.
data[].components.buttons[].indexintegerThe button's position, from 0. Use it as index when sending.
data[].components.buttons[].typestringThe button's type, such as URL, QUICK_REPLY, PHONE_NUMBER, COPY_CODE or OTP.
data[].components.buttons[].textstring or nullThe button's label.
data[].components.buttons[].urlstring or nullThe URL of a URL button.
data[].components.buttons[].phoneNumberstring or nullThe phone number of a PHONE_NUMBER button.
data[].components.buttons[].variablestring or nullThe variable at the end of a dynamic URL, if any.
data[].components.buttons[].parameterTypestring or nullThe parameter the button takes when sending, if any.
data[].components.buttons[].otpTypestring or nullThe kind of one-time code button, on authentication templates.
data[].unsupportedReasonstring or nullWhy the send routes can't send it, if they can't because of its layout.
data[].createdAtstringWhen Chatwise stored the template. ISO 8601, in UTC.
data[].updatedAtstringWhen the template last changed in Chatwise. ISO 8601, in UTC.
pagination.nextCursorstring or nullSend it as cursor for the next page. Null on the last page.

Errors

StatusMessageWhat it means
400Validation failedA parameter or body field is missing, unknown or malformed. errors lists each one.
400Invalid cursor or cursor does not match this requestThe cursor isn't one this route returned, or the filters or order changed since.
401A valid Bearer API key is requiredThe Authorization header is missing or isn't Bearer <API key>.
401Invalid or revoked API keyThe key doesn't exist, was revoked, or has expired.
401Invalid API keyChatwise couldn't check the key. Try again.
403API key does not have the required scope: templates:readThe key lacks the route's scope. Create a key that has it.
429API key rate limit exceededWait the number of seconds in the Retry-After header.
500Internal server errorSomething failed in Chatwise. Retry reads with backoff.

The body of an error is described in errors.

On this page