Retrieve Direct Send Templates

MethodGET
Endpoint/\<WABA_ID>/message_templates?source=AUTO_GENERATED
RML Connect Endpointhttps://apis.rmlconnect.net/wba/v1/tsp/messages
PurposeList all templates created by Direct Send — both content-matched (autogenerated* naming) and caller-named (via direct_send_config.template_name).

Template naming and identification

  • Content-based templates are named starting with "auto_generated", e.g. auto_generated_1234567890
  • Name-based templates use the exact template_name supplied in the API call, e.g. order_delivery
  • All Direct Send templates carry source = AUTO_GENERATED
  • Direct Send templates cannot be edited or deleted via the standard template management APIs (applies to both content-based and name-based templates)

Request

GET /\<WABA_ID>/message_templates?source=AUTO_GENERATED

Success response

{
  "data": [
    {
      "name": "auto_generated_text_e22a3ec4_7c4a_4097_ae40_56ed1e89941c",
      "parameter_format": "POSITIONAL",
      "components": [
        {
          "type": "BODY",
          "text": "Hi{{1}}, Your order is delivered.",
          "example": { "body_text": [["sample 1"]] }
        }
      ],
      "language": "en_US",
      "status": "APPROVED",
      "category": "UTILITY",
      "correct_category": "UTILITY",
      "source": "AUTO_GENERATED",
      "id": "1951933648908188"
    }
  ],
  "paging": {
    "cursors": { "before": "MAZDZD", "after": "MjQZD" }
  }
}

Related errors

CodeDescription
2388330Can't delete Direct Send template
2388318Can't update Direct Send template

Also viewable in WhatsApp Manager

Navigate to WhatsApp Manager > Manage Templates. Direct Send templates are identified by an auto-generated indicator displayed for each template. If a WABA contains both auto-generated and manually created templates, a Source filter with the options Auto-generated and Manually created is available.

Per-template insights, including spend, cost per message delivered, cost per click, and performance trends/funnel, can be accessed through WhatsApp Manager > Manage Templates > Template Insights. These insights can also be retrieved through the API using the template’s template_id.


Did this page help you?