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
- In the Twilio Console, select Communications in the left sidebar.
- Select Messaging, then Log Archives.
- Select Setup daily exports.
- 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.
- In HTTP method, choose HTTP POST or HTTP GET.
- Select Save.
- 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.