Skip to content
Chatwise
Skip to Content
Developer docs

Get a WhatsApp template

GET /v1/whatsapp/templates/{templateId}. Reads one WhatsApp template.

View as Markdown

GEThttps://api.chatwise.so/v1/whatsapp/templates/{templateId}

Reads one WhatsApp template. After creating one, poll it until status is no longer PENDING. sendable then says whether the send routes can send it.

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

Example

curl 'https://api.chatwise.so/v1/whatsapp/templates/123456789012345' \
  -H "Authorization: Bearer $CHATWISE_API_KEY"

Path parameters

NameTypeDescription
templateIdstringRequired. The template's id: Meta's, or Chatwise's own numeric id. Not . or .., which a URL can't carry. At most 128 characters.

Response

200. The template.

{
  "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"
  }
}
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.

Errors

StatusMessageWhat it means
400Validation failedA parameter or body field is missing, unknown or malformed. errors lists each one.
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.
404Template not foundNo such template in the key's workspace. Sending by name finds approved templates only.
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