SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How do I create a bulk export of my messaging logs?

Objective

This article shows you how to create a one-off bulk export job that generates JSON archive files of your message records for a date range you choose, so you can download your messaging activity logs for reporting or storage.

 

Product

Programmable Messaging

 

Environment

Twilio Console

 

Procedure

  1. In the Twilio Console, select Communications in the left sidebar.
  2. Select Messaging, then Log Archives.
  3. Select Create custom job.
  4. In Job friendly name, enter a descriptive name for the export job. This field is required.
  5. Under Date range, select a date range. Use Start date and End date to pick the days you want archived. One file is generated per day, covering a 24-hour period in UTC.
  6. Under Configure notifications, tell Twilio how to notify you when the files are ready:
  7. Enter a Webhook URL and choose HTTP POST or HTTP GET as the HTTP method, and/or
  8. Enter an Email address.
  9. Select Generate files.
  10. A confirmation message tells you the bulk export job was created successfully. The job appears on the Custom Jobs tab with its friendly name, start date, end date, and status.

 

Additional Information

  • You must provide either a webhook URL or an email address before the job can be created.
  • The end date must be earlier than yesterday in UTC. If you pick a later date, the form shows the message "End date must be before yesterday in UTC."
  • Generating files can take several hours. Files are automatically removed after seven days, so download them before they expire.
  • Archive files are also available through the BulkExport API if you would rather script your exports.
  • Once files exist, open the Past Files tab to generate a download link. To have archives created automatically every day instead of on request, see the article on scheduling daily messaging log archives.

 

 

This content was generated by AI and reviewed, edited, and verified by a human.

Have more questions? Submit a request
Powered by Zendesk