Receive webhook events

Updated October 21, 2026

Subscribe to webhooks to be notified when sessions change state or goals complete.

Webhooks let your server receive real-time notifications from AgentSky — no polling needed. Register a URL and AgentSky will POST events to it as they happen.

How to register a webhook:

  1. POST /api/v1/webhooks with your endpoint URL and the event types you want to receive.
  2. AgentSky will POST to your URL when matching events occur.
  3. Respond with a 2xx status code to acknowledge each event.

Available events:

EventWhen it fires
goal.completedThe agent finished its goal
goal.stoppedThe goal was stopped manually
goal.pausedThe goal is waiting for input
goal.resumedThe goal resumed after a pause
turn.completedA single turn (message + response) finished

Verifying webhook signatures:

AgentSky signs each webhook request with a signature header. Always verify this signature before acting on the payload — it confirms the request came from AgentSky.

Where: API

Good to know: Your endpoint must respond within a few seconds or the delivery will be retried. Related: Use the AgentSky API, Automate goals and routines via the API.

View as Markdown