Skip to main content
The InstaBox plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see Overview for setup context and the exact URL shape).
New to Corsair? See webhooks and hooks.

Webhook map

  • sandbox
    • created (sandbox.created)
    • deleted (sandbox.deleted)
    • error (sandbox.error)
    • queued (sandbox.queued)
    • queueEnded (sandbox.queueEnded)
    • started (sandbox.started)
    • stopped (sandbox.stopped)
    • suspended (sandbox.suspended)
  • snapshot
    • created (snapshot.created)
    • deleted (snapshot.deleted)
    • failed (snapshot.failed)
  • webhook
    • test (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
webhookHooks example

Deleted

sandbox.deleted A machine was deleted (type sandbox.deleted) Payload
webhookHooks example

Error

sandbox.error A machine is in error (type sandbox.error) Payload
webhookHooks example

Queued

sandbox.queued A GPU machine’s create or start joined the GPU queue (type sandbox.queued) Payload
webhookHooks example

Queue Ended

sandbox.queueEnded A request in the GPU queue expired, was cancelled or failed (data.reason) (type sandbox.queue_ended) Payload
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
webhookHooks example

Stopped

sandbox.stopped A machine stopped (type sandbox.stopped) Payload
webhookHooks example

Suspended

sandbox.suspended A machine paused: by you, when idle, or by a plan limit (type sandbox.suspended) Payload
webhookHooks example

Snapshot

Created

snapshot.created A snapshot is ready (type snapshot.created) Payload
webhookHooks example

Deleted

snapshot.deleted A snapshot was deleted (type snapshot.deleted) Payload
webhookHooks example

Failed

snapshot.failed A snapshot failed to upload (type snapshot.failed) Payload
webhookHooks example

Webhook

Test

webhook.test A test delivery (orgs.webhooks.test) (type webhook.test) Payload
webhookHooks example