Skip to content
Developers

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.

更新于 2026年11月22日 · 由 Rahil · Markdown

要点一览

TemplatesGET /api/v1/templates
AccountGET /api/v1/account
Returns templatesApproved ones only, sorted by name
NeedsAn 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

  • category is utility for updates, marketing for promotions and authentication for codes. Marketing ones need the Marketer plan to send through the API.
  • variables are the blanks in order; send one value for each.
  • header is image, video, document or text when the template has one; media headers need media_url.
  • buttons lists 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.

常见问题

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.

在您自己的号码上试试

两分钟完成连接,免费试用 7 天,无需信用卡。AI 员工会在顾客已经熟悉的 WhatsApp 号码上回复、预订并跟进。