Vercel Sandbox adds session lifecycle webhooks
Vercel Sandbox now sends webhooks when a sandbox session starts (is ready), is approaching its timeout (sandbox.session.expiring, sent 1 minute before timeout or the configured expiryNotificationLeadTime), or is stopped (sandbox.session.stopped). Stopped events include a stop reason (requested, snapshot, timeout, exited, or error) and the session's duration, active CPU time, and network transfer.

Why it matters
Builders running agent or sandboxed workloads can update application state, decide whether to extend a session before it expires, and trigger cleanup based on webhook events instead of polling. Delivery can happen more than once, so handlers must be idempotent.
Who should care
Developers building AI agents, sandboxed code execution, or long-running workflows on Vercel Sandbox
What you can do
Subscribe to sandbox.session.expiring and sandbox.session.stopped in your team's webhook settings, and key your handler on the session ID (and sandbox.expiresAt for expiring events) to handle duplicate deliveries.