Vercel Sandbox now sends webhooks when a sandbox session is ready, is approaching its timeout, or is stopped. Use these notifications to update application state, decide whether to extend an agent session, or trigger cleanup.
Subscribe to sandbox.session.started , sandbox.session.expiring , and sandbox.session.stopped in your team's webhook settings . Each event includes sandbox and session details, so your backend can identify the affected session. Stopped events include the stop reason ( requested , snapshot , timeout , exited , or error ) and the session's duration, active CPU time, and network transfer.
Vercel sends sandbox.session.expiring 1 minute before a session times out, or the time configured by expiryNotificationLeadTime .…