Skip to main content
Changes a template. Only what the body gives changes; variants, when given, replaces every channel’s version.
Needs the templates:write scope.

Path parameters

Body

variants holds one object per channel, keyed sms or whatsapp, in that channel’s content shape: SMS takes text; WhatsApp takes text (inside the 24-hour window) and template, language and params (an approved WhatsApp template, used outside it). Write {{name}} wherever a value goes; variables in the answer lists every name the template needs.

Request

Response

200 OK

Errors

Every refusal is {"error": {"code", "message", "field"}}; field is there when one input is at fault. Any request can also be refused for its key, its account or its rate (key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.