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 schedule daily archives of my messaging logs?

Objective

This article shows you how to set up automated daily JSON archives of your SMS logs and have Twilio call a webhook when each day's file is ready, so you can pull your messaging records into your own systems on an ongoing basis.

 

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 Setup daily exports.
  4. The Daily JSON archives panel opens. In Webhook URL, enter the URL Twilio should call when a daily archive is ready. This field is required and must be a valid URL.
  5. In HTTP method, choose HTTP POST or HTTP GET.
  6. Select Save.
  7. A confirmation message tells you that the daily export automation was updated successfully.

 

Additional Information

  • Each daily archive covers a 24-hour period based on the UTC timezone.
  • Files are automatically removed after seven days, so make sure your webhook handler retrieves each archive promptly.
  • Generated daily files are listed on the Past Files tab, where you can generate a link to download an individual file.
  • For a one-off export over a specific date range rather than an ongoing schedule, use Create custom job instead.

 

 

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

Have more questions? Submit a request
Powered by Zendesk