Create a template

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The name of the template

string | null

The ID of the folder the template should be created in

string | null

The Superchat WhatsApp Business Account ID (waba_...), not the numeric Meta WABA ID. Required and non-null when content.type is whats_app_template; optional for generic_template. Find it in whats_app_business_account_id on a WhatsApp channel from List all channels.

content
required

The content definition for the template

Responses

400

Bad Request

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json