event and data matching the event stream, excluding token previews, heartbeats, and stream errors. Each webhook is a project-owned subscription, managed independently of agent configuration.
Configure
Open the project’s Webhooks tab to see and manage every subscription. The create/edit form sets the destination URL, event types, optional signing secret, and Receive events from selection: all agents in the project, agents using one profile, or one agent. The API usesPOST /orgs/{orgID}/projects/{projectID}/event-webhooks to create a subscription:
409; existing subscriptions remain active, editing does not consume another slot, and deletion frees one. Each selection can have only one active subscription per URL; conflicting creates and edits return 409. Overlapping subscriptions with the same URL and signing-secret ID queue only one delivery per event.
GET /orgs/{orgID}/projects/{projectID}/event-webhooks lists subscriptions across the project, ordered by creation time and ID. Pass limit (1–100, default 50), then pass the returned next_cursor as cursor until it is null. To list an exact selection, pass scope_type=project, scope_type=profile&agent_profile_id=..., or scope_type=agent&agent_id=.... The filters return directly selected subscriptions, not inherited matches. Listing requires project read permission; changes require project management permission.
Responses include scope_name, the current name of the selected agent or profile. It is omitted for project scope or an unavailable name; use the selected resource ID as a fallback.
To change a subscription’s selection, send its complete new scope to PATCH /orgs/{orgID}/projects/{projectID}/event-webhooks/{webhookID}:
event_types allowlist selects agent_input, model_output, tool_result, context_checkpoint, or tool_call_update. New subscriptions and selection/filter edits apply to newly queued notifications, with no historical replay. A notification selected before an edit can still arrive afterward, even if its agent no longer matches the selection. URL and signing changes also apply to pending attempts. Removing the selected subscription stops its pending attempts without transferring them to another subscription; in-flight requests may finish. Deleting a profile removes subscriptions that select it.
Deliveries retry independently for up to ten minutes, with a five-second request timeout and exponential backoff with jitter. Return 2xx to acknowledge receipt. Events may arrive more than once or out of order; deduplicate deliveries by Webhook-Id and custom tool execution by tool-call ID.
Signing is optional. Set signing_secret_id to a project-available generic secret generated with openssl rand -base64 32.
Webhook deliveries are suppressed for deleted projects and organizations, including events produced by their deletion.
Every request includes Webhook-Id (stable across retries) and Webhook-Timestamp (Unix seconds for that attempt). Signed requests also include Webhook-Signature. Verify the signature against the raw request body before parsing it, using Standard Webhooks.
Receive and verify
The SDK includes the TypeScript typeEventWebhookPayload and the Zod schema zEventWebhookPayload for validating incoming webhook payloads.
Install @omnara/sdk and standardwebhooks. Set WEBHOOK_SIGNING_SECRET to the same base64 value stored in the webhook’s signing secret. This Node.js server verifies the raw body before validating the payload; missing, invalid, or expired signatures are rejected.
/webhook over public HTTPS. This snippet only validates and acknowledges events. For custom-tool execution and duplicate handling, see the runnable custom-tool webhook example.
Payload examples
Every event includes the same organization, project, agent, and ancestry fields as SSE and REST timeline events. Timeline events also include event and turn identifiers, an event sequence, and a creation timestamp. The examples below include all required fields; the OpenAPI schemas describe optional fields and content-block variants.Agent input (agent_input)
Agent input (agent_input)
Model output (model_output)
Model output (model_output)
Tool result (tool_result)
Tool result (tool_result)
Context checkpoint (context_checkpoint)
Context checkpoint (context_checkpoint)
Tool-call update (tool_call_update)
Tool-call update (tool_call_update)
tool_call_update is a notification to fetch the tool call or interaction for its current details. It carries a state snapshot, not a timeline sequence. When a custom call becomes ready, it also includes the tool’s name, plus its input if the JSON-encoded input is at most 64 KiB; for larger inputs, fetch the call. For custom execution, handle ready updates and deduplicate by tool-call ID. Subagents follow the same scope rules and send their own agent IDs.
When a permission or question opens or closes, interaction_update includes its ID, kind, and state (open, resolved, or canceled). Omission means no interaction change. Track interactions by ID; a terminal update takes precedence over a late open update. Fetch interactions when you need the full form.