21619: A Message Body, Media URL or Content SID is required
MESSAGING
ERROR
This error occurs when you create a Message with a Messaging Service and do not provide any message content. Include content in Body, MediaUrl, or ContentSid.
- Your request includes
MessagingServiceSidbut omitsBody,MediaUrl, andContentSid. - Your application sends an empty or undefined
Bodyand does not provideMediaUrlorContentSid. - You are trying to send a content template without including
ContentSid.
- Include at least one content parameter in your request:
Body,MediaUrl, orContentSid. - If you are sending plain text, pass the text in
Body. - If you are sending media, include one or more
MediaUrlvalues. - If you are sending a template created with the Content Template Builder, include
ContentSid. IncludeContentVariableswhen your template contains placeholders. - Review your request builder or helper library code to make sure it is not stripping all content fields before the API request is sent.