92005: ContentSid Required
MESSAGING, CONTENT
ERROR
You sent a Messaging API request with ContentVariables but did not include ContentSid. When you send a content template, include ContentSid, and include ContentVariables only when you need to substitute template variables.
- You included
ContentVariablesin the request withoutContentSid. - Your application builds a template-based message request and omits the required
ContentSidfield before sending. - You intended to send a Content Template Builder template, but the request still uses only variable data and does not reference the preconfigured template SID.
- Add
ContentSidto the request whenever you includeContentVariables. - Use the SID of the preconfigured content template you want to send.
ContentSididentifies the template, andContentVariablessupplies the runtime substitution values. - Format
ContentVariablesas a JSON string that contains the placeholder keys and values defined for your template. - If you are sending a content template, replace
BodyandMediaUrlwithContentSid. Then addContentVariablesonly if the template includes placeholders.