Webhook map
sandboxcreated(sandbox.created)deleted(sandbox.deleted)error(sandbox.error)queued(sandbox.queued)queueEnded(sandbox.queueEnded)started(sandbox.started)stopped(sandbox.stopped)suspended(sandbox.suspended)
snapshotcreated(snapshot.created)deleted(snapshot.deleted)failed(snapshot.failed)
webhooktest(webhook.test)
HTTP handler setup
app/api/webhook/route.ts
Events
Sandbox
Created
sandbox.created
A machine was accepted (state creating) (type sandbox.created)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Deleted
sandbox.deleted
A machine was deleted (type sandbox.deleted)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Error
sandbox.error
A machine is in error (type sandbox.error)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Queued
sandbox.queued
A GPU machine’s create or start joined the GPU queue (type sandbox.queued)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Queue Ended
sandbox.queueEnded
A request in the GPU queue expired, was cancelled or failed (data.reason) (type sandbox.queue_ended)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Started
sandbox.started
A machine is running and ready for exec and SSH (after create, start, resume or wake) (type sandbox.started)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Stopped
sandbox.stopped
A machine stopped (type sandbox.stopped)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Suspended
sandbox.suspended
A machine paused: by you, when idle, or by a plan limit (type sandbox.suspended)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Snapshot
Created
snapshot.created
A snapshot is ready (type snapshot.created)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Deleted
snapshot.deleted
A snapshot was deleted (type snapshot.deleted)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Failed
snapshot.failed
A snapshot failed to upload (type snapshot.failed)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Webhook
Test
webhook.test
A test delivery (orgs.webhooks.test) (type webhook.test)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example