API documentation

List templates

The approved templates you can send, and what each send needs.

GEThttps://wabapi.com/api/v1/templates

Lists the templates on your account that Meta has approved and the API sends: pending, rejected and paused templates, and carousels, are not listed. Check needs_button_parameters before relying on one — a template that needs more than body text may not be sendable through the API. Templates are ordered by name, then language.

Query

FieldTypeRequiredDescription
namestringnoOnly the template with exactly this name, in every language it is approved in. Leave it out to list all.

Example

Request
curl https://wabapi.com/api/v1/templates \
  -H "Authorization: Bearer wab_live_0123456789abcdef0123456789abcdef"
Response 200
{
  "data": [
    {
      "name": "order_shipped",
      "language": "en",
      "category": "UTILITY",
      "type": "TEXT",
      "status": "APPROVED",
      "body": "Your order has shipped and will reach you in 2-3 days.",
      "body_variable_count": 0,
      "needs_button_parameters": false,
      "updated_at": "2026-11-02T09:15:00.000Z"
    },
    {
      "name": "sip_reminder",
      "language": "en",
      "category": "UTILITY",
      "type": "TEXT",
      "status": "APPROVED",
      "body": "Hi {{1}}, your SIP of {{2}} is due on {{3}}.",
      "body_variable_count": 3,
      "needs_button_parameters": false,
      "updated_at": "2026-11-10T04:30:00.000Z"
    }
  ]
}

Add ?name=sip_reminder to fetch one template by its exact name. An unknown name returns an empty data list, not an error.

Fields

FieldTypeRequiredDescription
namestringyesThe template name — pass it as template_name in a send.
languagestringyesThe language code as approved, for example en or en_US — pass it as template_language.
categorystringyesUTILITY, AUTHENTICATION or MARKETING. Decides the credits a send costs.
typestringyesTEXT, IMAGE, VIDEO or DOCUMENT — the header. A media template sends the header it was approved with unless you supply one.
statusstringyesAlways APPROVED: only templates you can send are listed.
bodystringyesThe approved message text, with its {{1}}, {{2}}… placeholders.
body_variable_countintegeryesHow many body parameters a send must carry — exactly this many, or the send answers 422 variable_count_mismatch. 0 means leave components out.
needs_button_parametersbooleanyestrue when a send needs more than body text: a URL button ending in a variable, a copy-code or one-time-password button, or a header with a variable. Of those the API can supply only the URL suffix (a button component); a header variable or a code cannot be supplied today, so those templates will not send through the API. false means body parameters alone are enough.
updated_atstringyesWhen the template last changed here, ISO 8601 in UTC.

Check body_variable_count before you send: a send with a different number of body parameters is refused with 422 variable_count_mismatch. A template with needs_button_parameters true needs more than body text; unless that is a URL button suffix, it cannot be sent through the API.

The list is read from your account here, not fetched from Meta on each call, so a template approved a moment ago can take a few minutes to appear. Listing is free, uses no credits and works on a paused account.

Errors

HTTPcodeMeaning
401invalid_api_keyThe Authorization header is missing, malformed, unknown or revoked.