36004: Error Retrieving File
MESSAGING
ERROR
Twilio returns this error when it cannot retrieve the Broadcast upload file from your request body. For Broadcast uploads, attach a GZIP-compressed JSON file as the value of the file key. Twilio APIs accept multipart/form-data for requests that include file content.
- The request body did not include a
filekey for the Broadcast upload. - The uploaded file was sent under a different field name, so Twilio could not find the required
filekey. - The request body format prevented Twilio from reading the uploaded file. Twilio APIs expect
multipart/form-dataorapplication/x-www-form-urlencoded, and file uploads should be sent inmultipart/form-data.
- Send the upload as a
.json.gzfile and attach it as the value of thefilekey in the Broadcast Upload request body. - Make sure the request uses
multipart/form-dataso the uploaded file is sent as a retrievable form part. - If the request still fails, review the Error Logs or Messaging logs in Console to inspect the failing request and confirm which upload Twilio received.