Skip to main content
The Daytona 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)
    • stateUpdated (sandbox.stateUpdated)
  • snapshot
    • created (snapshot.created)
    • removed (snapshot.removed)
    • stateUpdated (snapshot.stateUpdated)
  • volume
    • created (volume.created)
    • stateUpdated (volume.stateUpdated)

HTTP handler setup

app/api/webhook/route.ts

Events

Sandbox

Created

sandbox.created A sandbox was created (event sandbox.created) Payload
webhookHooks example

State Updated

sandbox.stateUpdated A sandbox’s state changed (oldState, newState) (event sandbox.state.updated) Payload
webhookHooks example

Snapshot

Created

snapshot.created A snapshot was created (event snapshot.created) Payload
webhookHooks example

Removed

snapshot.removed A snapshot was removed (event snapshot.removed) Payload
webhookHooks example

State Updated

snapshot.stateUpdated A snapshot’s state changed (event snapshot.state.updated) Payload
webhookHooks example

Volume

Created

volume.created A volume was created (event volume.created) Payload
webhookHooks example

State Updated

volume.stateUpdated A volume’s state changed (event volume.state.updated) Payload
webhookHooks example