63047: Link to a sample media file returned an invalid Content-Type
MESSAGING
ERROR
Twilio could not create the content template because the sample media URL did not return an accepted MIME type in the Content-Type header. For media templates, the sample URL must resolve to a publicly hosted file, and Twilio validates the media response before creating the template.
- The server hosting the media file did not send a
Content-Typeheader. - The server returned a
Content-Typeheader that is not accepted for the sample media file. For this error, accepted sample types areimage/jpeg,image/png,application/pdf, orvideo/mp4. - The sample URL did not resolve to a publicly hosted media file.
- The
Content-Typeheader did not match the actual file type returned by the URL.
- Configure the host serving the sample file to return a valid
Content-Typeheader for the file you provide. - Use a sample media URL that resolves directly to a publicly hosted file.
- Replace the sample with a supported type for template creation:
image/jpeg,image/png,application/pdf, orvideo/mp4. - If the media URL includes variables, provide a sample path that includes a valid file type and resolves to a publicly hosted file.