92006: The Content Sid is Invalid
MESSAGING, CONTENT
ERROR
This error occurs when you send a Message request with a ContentSid value that is not recognized as a valid Content Template SID. Use a valid 34-character SID with an HX prefix, and retrieve it from the Content Template Builder in Console or from the response when you create or fetch a template with the Content API.
- The
ContentSidvalue does not match the required SID format and does not start withHX. - The
ContentSidcontains a typo or refers to a template SID that does not exist. - The template was deleted from your account.
- The template belongs to a different Twilio account than the account sending the message.
- You used an identifier from a WhatsApp template workflow that is not a Content Template SID. Only Content Templates can be sent with
ContentSidandContentVariables.
- Copy the
ContentSiddirectly from the Content Template Builder in Console or from the Content API response instead of entering it manually. - Verify that the SID is 34 characters long and matches the
^HX[0-9a-fA-F]{32}$pattern. - Fetch or list your content templates to confirm that the template exists, has not been deleted, and belongs to the same account that is sending the message.
- Replace the invalid or deleted template SID with an active Content Template SID and send the request again.
- If you are sending WhatsApp templates, use a Content Template SID with
ContentSidinstead of a template identifier from the WhatsApp Templates console flow.