Vercel Sandbox now sends webhooks as sessions start, expire and stop
Developers can subscribe to three new events to update their apps, extend an agent's session or clean up when a sandbox ends.
EDITOR | Monday 30 November 2026 | World

Vercel Sandbox now sends webhooks, automatic messages to a developer's own system, when a sandbox session is ready, nears its timeout or stops. Teams can use them to update application state, decide whether to extend an agent session or trigger cleanup.
The three events are sandbox.session.started, sandbox.session.expiring and sandbox.session.stopped, which are subscribed to in the team's webhook settings. Each carries sandbox and session details so a backend can identify the session affected.
Stopped events give the reason: requested, snapshot, timeout, exited or error. They also report the session's duration, active CPU time and network transfer.
The expiring event is sent 1 minute before a session times out, or earlier if a lead time is set. Because events can be delivered more than once, Vercel says handlers should key on the session ID.