Skip to main content
Template parameters supply the values for placeholders in the template content. Every parameter is a JSON object with exactly two fields and has no type discriminator on SMS parameters (unlike WhatsApp template parameters):

Placeholders

Template content uses double-brace placeholders, which can be named ({{sample}}, {{code}}) or positional ({{1}}, {{2}}). In a request, supply a parameter whose name matches the placeholder identifier. For a positional placeholder {{1}}, use "name": "1". At send time the API replaces each placeholder with the corresponding parameter value, or with the parameter definition’s default when one is omitted.

Parameter definitions

Each template carries parameter definitions that govern validation. These are configured when the template is created:

Parameter formats

The format on a parameter definition restricts what characters are allowed in the value:

Required vs optional parameters

For each placeholder in the template content:
  • If you provide the parameter in params, it is validated against the definition.
  • If you omit it and the definition has a default, the default is used automatically.
  • If you omit it and there is no default, the request is rejected with Missing required parameter '{name}'.