Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

63047: Link to a sample media file returned an invalid Content-Type


ERROR: 63047

error-63047 page anchor
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.

Possible causes

possible-causes page anchor
  • The server hosting the media file did not send a Content-Type header.
  • The server returned a Content-Type header that is not accepted for the sample media file. For this error, accepted sample types are image/jpeg, image/png, application/pdf, or video/mp4.
  • The sample URL did not resolve to a publicly hosted media file.
  • The Content-Type header did not match the actual file type returned by the URL.
  • Configure the host serving the sample file to return a valid Content-Type header 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, or video/mp4.
  • If the media URL includes variables, provide a sample path that includes a valid file type and resolves to a publicly hosted file.

Additional resources

additional-resources page anchor