63028: Number of parameters provided does not match the expected number of parameters
MESSAGING
ERROR
You received this error because the values you passed in ContentVariables do not match the variables defined by the template referenced by ContentSid. When you send a templated message, ContentVariables must map template variables to substitution values. If you do not send a value for a variable, Twilio can use the template's default placeholder value.
- The number of values or keys you provided in
ContentVariablesdoes not align with the placeholder variables defined in the selected template. - The template referenced by
ContentSidwas changed, but your send request still uses an older set of variables, because send-time variables must match the template definition. - For WhatsApp templates, variable definitions skip integers or otherwise break WhatsApp variable rules, which can cause the approved template and your send payload to fall out of alignment.
- Fetch the template and review its
variablesdefinition before you send the message. Make sure every placeholder expected by the template has a corresponding substitution value inContentVariables. - Send
ContentVariablesas a valid JSON string of key-value pairs that map template variable numbers to substitution values. - If you want Twilio to substitute fallback values, define default placeholder values in the template before you send the message.
- For WhatsApp templates, define variables in sequential order without skipping integers.