# 92005: ContentSid Required

Log Type: APPLICATION

Log Level: ERROR

## Description

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.

### Possible causes

* You included `ContentVariables` in the request without `ContentSid`.
* Your application builds a template-based message request and omits the required `ContentSid` field 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.

### Possible solutions

* Add `ContentSid` to the request whenever you include `ContentVariables`.
* Use the SID of the preconfigured content template you want to send. `ContentSid` identifies the template, and `ContentVariables` supplies the runtime substitution values.
* Format `ContentVariables` as a JSON string that contains the placeholder keys and values defined for your template.
* If you are sending a content template, replace `Body` and `MediaUrl` with `ContentSid`. Then add `ContentVariables` only if the template includes placeholders.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
* [Send templates created with the Content Template Builder](/docs/content/send-templates-created-with-the-content-template-builder)
* [Using Variables with Content Templates](/docs/content/using-variables-with-content-api)
