35127: 'Messages' Body and ContentVariables cannot be provided together
MESSAGING
ERROR
This error occurs when your request sends free-form message text in Body and template variable substitutions in ContentVariables at the same time. To send a content template, use ContentSid and optional ContentVariables. Do not include Body in the same request.
- Your request included both
BodyandContentVariables. - You intended to send a content template, but your request still included
Bodyinstead of usingContentSidfor the message content. - Your application mixes a standard Messaging API send with a content template send in the same request.
- If you are sending a standard text or MMS message, remove
ContentVariablesand send the request withBodyand optionalMediaUrl. - If you are sending a content template, remove
Body, includeContentSid, and addContentVariablesonly when you need to substitute template placeholders. - If your request includes
ContentVariables, make sure it is part of a template-based send that usesContentSid.