List templates and check the account
Two read-only endpoints help you build against the iChatUp API without guessing. GET /api/v1/templates lists every approved template with its language, kind, body text, blanks, header type and button labels. GET /api/v1/account tells you which business the key belongs to and whether its official WhatsApp connection is live, with the number’s quality rating and daily limit tier.
Sepintas lalu
| Templates | GET /api/v1/templates |
|---|---|
| Account | GET /api/v1/account |
| Returns templates | Approved ones only, sorted by name |
| Needs | An API key |
Listing templates
curl https://ichatup.com/api/v1/templates \
-H "Authorization: Bearer YOUR_API_KEY"{
"templates": [
{
"name": "order_confirmed",
"language": "en",
"category": "utility",
"body": "Hi {{1}}, we have received order {{2}}.",
"variables": ["1", "2"],
"header": null,
"buttons": []
}
]
}
What the fields mean
categoryisutilityfor updates,marketingfor promotions andauthenticationfor codes. Marketing ones need the Marketer plan to send through the API.variablesare the blanks in order; send one value for each.headerisimage,video,documentortextwhen the template has one; media headers needmedia_url.buttonslists the button labels as the customer sees them.
Templates are created and submitted to Meta in the dashboard under Broadcasts, Templates, not through the API.
Checking the account
GET /api/v1/account returns business, connected, number, quality and daily_limit_tier. Call it from a health check: if connected turns false, sends will answer 409 until the owner reconnects WhatsApp. A response example is on authentication.
Soalan lazim
Why is my new template missing from the list?
Only approved templates are listed. A template waiting for Meta’s review, or rejected, does not appear.
Can the API create a template?
No. Write and submit templates in the dashboard; the API sends the approved ones.
Cuba pada nombor anda sendiri
Dua minit untuk sambung, 7 hari percuma, tanpa kad. Pekerja AI anda menjawab, membuat tempahan dan membuat susulan di nombor WhatsApp yang sudah digunakan pelanggan anda.