WhatChimp API ke zariye Template List prapt karein

Approval status aur button types ke saath sabhi WhatsApp templates retrieve karein

Updated 10 February 2026

Apne phone number se judi sabhi WhatsApp message templates retrieve karein — approval status check karein, template variables dekhein, aur messages bhejne se pehle button types inspect karein.

Shuru karne se pehle: Apne WhatChimp API credentials taiyar rakhein.

Endpoint

GET/POST /api/v1/whatsapp/template/list

API console mein Get Bot Template endpoint jo parameters aur response dikha raha hai

Parameters

ParameterTypeRequiredDescription
apiTokenStringHaanAapka WhatChimp API token
phone_number_idStringHaanAapki WhatsApp Business phone number ID

Request Examples

GET Request:

curl -X GET "https://app.whatchimp.com/api/v1/whatsapp/template/list?apiToken=API-KEY&phone_number_id=PHONE-NUMBER-ID"

POST Request (cURL):

curl -X POST https://app.whatchimp.com/api/v1/whatsapp/template/list \
  -H "Content-Type: application/json" \
  -d '{
    "apiToken": "API-KEY",
    "phone_number_id": "PHONE-NUMBER-ID"
  }'

Response

Success Response:

{
  "status": "1",
  "message": {
    "id": 48,
    "template_id": "437509121867805",
    "template_name": "ada",
    "template_type": "single",
    "locale": "en_US",
    "header_type": "media",
    "header_subtype": "image",
    "body_content": "To send an interactive message template...",
    "button_type": "none",
    "status": "Rejected"
  }
}

Response Fields

FieldDescription
idWhatChimp ki internal template ID (API ke zariye templates bhejte waqt iska use karein)
template_idMeta ki internal template ID
template_nameTemplate ka naam
localeLanguage code (jaise, en_US, es_ES)
header_typeHeader type: text, media, ya none
body_contentMessage body ka text
button_typeButton type: quick_reply, call_to_action, ya none
statusApproval status: Approved, Rejected, ya Pending
variable_mapTemplate variables ka map

Important: API ke zariye templates bhejte waqt id field ka use karein (template_id ka nahi). template_id Meta ki internal ID hai.

Use Cases

  • Bhejne se pehle check karein ki kaun se templates approved hain
  • Send API ke liye template_id dhoondhein
  • Messages construct karne se pehle button_type aur variable_map inspect karein
  • Template status ko programmatically validate karein

Related Articles

More in WhatChimp APIs