Skip to main content
The Maritime 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

  • agent
    • deployed (agent.deployed)
    • error (agent.error)
    • llmLimitReached (agent.llmLimitReached)
    • restarted (agent.restarted)
    • sleeping (agent.sleeping)
    • stopped (agent.stopped)
    • woken (agent.woken)
  • endUser
    • created (endUser.created)
    • deleted (endUser.deleted)
    • resumed (endUser.resumed)
    • suspended (endUser.suspended)
  • exec
    • finished (exec.finished)
  • message
    • failed (message.failed)
    • reply (message.reply)
  • sandbox
    • created (sandbox.created)
    • ended (sandbox.ended)
    • error (sandbox.error)
    • paused (sandbox.paused)
    • pauseFailed (sandbox.pauseFailed)
    • resumed (sandbox.resumed)
    • running (sandbox.running)

HTTP handler setup

app/api/webhook/route.ts

Events

Agent

Deployed

agent.deployed The agent finished deploying and is ready (X-Maritime-Event agent.deployed) Payload
webhookHooks example

Error

agent.error The agent entered an error state (data.failure_kind tells a failed build apart) (X-Maritime-Event agent.error) Payload
webhookHooks example

Llm Limit Reached

agent.llmLimitReached The agent reached its monthly AI spend limit (once per agent per month) (X-Maritime-Event agent.llm_limit_reached) Payload
webhookHooks example

Restarted

agent.restarted The agent was restarted (X-Maritime-Event agent.restarted) Payload
webhookHooks example

Sleeping

agent.sleeping The agent auto-slept after going idle (X-Maritime-Event agent.sleeping) Payload
webhookHooks example

Stopped

agent.stopped The agent was stopped (X-Maritime-Event agent.stopped) Payload
webhookHooks example

Woken

agent.woken A sleeping agent was woken (X-Maritime-Event agent.woken) Payload
webhookHooks example

End User

Created

endUser.created An end user was created (X-Maritime-Event end_user.created) Payload
webhookHooks example

Deleted

endUser.deleted An end user was deleted with their agents (X-Maritime-Event end_user.deleted) Payload
webhookHooks example

Resumed

endUser.resumed A suspended end user was resumed (X-Maritime-Event end_user.resumed) Payload
webhookHooks example

Suspended

endUser.suspended An end user was suspended (X-Maritime-Event end_user.suspended) Payload
webhookHooks example

Exec

Finished

exec.finished A detached exec reached a final status (data.execution_id, status, exit_code) (X-Maritime-Event exec.finished) Payload
webhookHooks example

Message

Failed

message.failed An async API message failed (X-Maritime-Event message.failed) Payload
webhookHooks example

Reply

message.reply An async API message got its reply (X-Maritime-Event message.reply) Payload
webhookHooks example

Sandbox

Created

sandbox.created A virtual machine was created (type sandbox.created) Payload
webhookHooks example

Ended

sandbox.ended A virtual machine ended (type sandbox.ended) Payload
webhookHooks example

Error

sandbox.error A virtual machine hit an error (type sandbox.error) Payload
webhookHooks example

Paused

sandbox.paused A virtual machine paused (type sandbox.paused) Payload
webhookHooks example

Pause Failed

sandbox.pauseFailed A virtual machine failed to pause (type sandbox.pause_failed) Payload
webhookHooks example

Resumed

sandbox.resumed A virtual machine resumed (type sandbox.resumed) Payload
webhookHooks example

Running

sandbox.running A virtual machine is running (type sandbox.running) Payload
webhookHooks example