Create a new template in a workspace. Both generic and WhatsApp template bodies use {{1}}, {{2}}, and so on for variables, numbered consecutively in occurrence order without spaces or repeated numbers. Bind attributes through content.variables using the matching position. Single-brace text such as {1} is literal text, not a variable. Send content.variables as [] when no attributes are bound. WhatsApp templates require a Superchat whats_app_business_account_id (waba_...), not Meta's numeric ID.
A fetched template is a response, not a create payload. To reuse buttons, map title to text, the static_url type to url, and phone button target to phone_number. Static URL button target stays target. For dynamic URL buttons, remove the trailing numbered placeholder (for example, {{2}}) from the returned target before creating a template; creation appends {{1}} itself. Supply example_url_suffix separately; it is not returned in responses. For variable bindings, map attribute_id to attribute_identifier for custom attributes; choose a documented static key for static variables rather than using the localized display_name.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Bad Request