Skip to main content

When it fires

  • The Objective reaches STATE_FINALIZED after it completes its work.
  • If the Agent uses structured output, retrieve the Objective to read the result from its output field.

Event data

The event-specific fields live at data.objectiveEvent.data. The rest of the payload is the shared envelope.
string
required
Always finalized.
object
required
The terminal event data.

Retrieve the result

Use data.objective.id from the webhook to retrieve the Objective. Its output field matches the schema configured on the Agent.

Envelope

Every objective event arrives in the same envelope. type names the event, data carries the agent, variation, and objective it belongs to, and data.objectiveEvent.data holds the fields documented on each event page.
Cadenya signs every delivery per the Standard Webhooks specification and sends it as a POST with a JSON body.Find the signing key under Account Admin and rotate it with rotate the webhook signing key. Cadenya records every attempt, and you can inspect them with list webhook deliveries.
string
required
The event name, for example objective_event.tool_called.
string
required
RFC 3339 time when Cadenya emitted the delivery.
object
required
Everything you need to route the event without a lookup.