Skip to main content
Use a webhook to start work from an external event. The webhook receives a JSON payload and starts an agent, job, or workflow.

Steps

  1. Create a webhook for the project.
  2. Choose one target: agent, job, or workflow.
  3. Configure the source system with the webhook URL and secret.
  4. Add a filter when only some events should run.
  5. Test the webhook and inspect the target run.

Try it with REST

Create a webhook that runs an agent for opened pull requests: POST /projects/{project_reference}/webhooks
Terminal

API surfaces

Verify

Send a test event from the source system. Open the webhook delivery and confirm it created a target run.

How webhooks work

Ignored events are stored without creating a run. Webhooks do not create conversations.

Target kinds

Each webhook has one target.

Prompt template

The prompt template tells the target what to do with the event.
Keep templates explicit about the expected output and acceptance criteria.

Filter

A filter decides whether an incoming event starts a run.

Operate webhooks

  • Confirm the source system uses the current webhook URL and secret.
  • Check accepted, ignored, and failed deliveries.
  • Open the target run from an accepted event.
  • Replay failed events after fixing the webhook, target, or source configuration.

API reference