v1

latestOpenAPI 3.0.3MIT2026-07-17241338.5 KB
Webhooks

Ingest agent webhook event

Ingests a raw webhook payload (from GitHub, Gitea, or other providers) and dispatches it to matching AgentTriggerRule resources. Normalizes the event type from the payload structure automatically.

post/api/orgs/{org}/agents/webhooks/ingest

Path parameters

orgstring required
Example:default

Organization slug

Request body

actionstring

Webhook action (opened, created, labeled, etc.)

pull_requestobject

Pull request data (if applicable)

issueobject

Issue data (if applicable)

commentobject

Comment data (if applicable)

labelobject

Label data (if applicable)

workflow_runobject

CI workflow run data (for pipeline events)

refstring

Git ref (for push events)

commitsobject[]

Commit list (for push events)

Example request

{
  "action": "opened",
  "repository": {
    "full_name": "org/my-repo"
  },
  "sender": {
    "login": "alice"
  }
}

Response

Webhook processed

processedboolean
triggeredRulesstring[]
dispatchedRunsstring[]