Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

35127: 'Messages' Body and ContentVariables cannot be provided together


ERROR: 35127

error-35127 page anchor
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.

Possible causes

possible-causes page anchor
  • Your request included both Body and ContentVariables.
  • You intended to send a content template, but your request still included Body instead of using ContentSid for 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 ContentVariables and send the request with Body and optional MediaUrl.
  • If you are sending a content template, remove Body, include ContentSid, and add ContentVariables only when you need to substitute template placeholders.
  • If your request includes ContentVariables, make sure it is part of a template-based send that uses ContentSid.

Additional resources

additional-resources page anchor