Skip to main content

Webhooks & Events API

Receive real-time notifications for job completions, tool executions, and other events.

Overview

Webhooks eliminate polling. Instead of repeatedly checking job status, subscribe to events:

Event Types


Setup

Register Webhook Endpoint

Response


Webhook Payload Format

All webhooks follow this structure:

Event Payloads

job.queued

Fired when job is submitted to queue.

job.started

Fired when job execution begins.

job.completed

Fired when job finishes successfully.

job.failed

Fired when job execution fails.

job.canceled

Fired when job is canceled.

tool.executed

Fired after tool execution (sync or async).

pack.enabled

Fired when pack is enabled.

server.installed

Fired when server is installed.

Security

Verify Webhook Signature

Every webhook includes an X-Agent-CoreX-Signature header for verification:

Python Verification


Implementation

Node.js/Express Example


Django/DRF Example


Go Example


Webhook Management

List Webhooks

Response:

Update Webhook


Delete Webhook


Best Practices

1. Verify Signatures


2. Respond Quickly


3. Implement Retry Logic


4. Log Everything


Testing Webhooks

Using ngrok


Using Webhook.cool


Debugging

Check Delivery History

Response:

See Also