Appearance
Webhook events
How endpoints, signatures and retries work: Async runs and webhooks.
Every delivery is a POST with this envelope:
| Field | Type | Description |
|---|---|---|
id | string | event id, stable across retries and resends |
event | string | the event name (also in the x-hevkar-event header) |
createdAt | string | when the event happened |
projectId | uuid | |
data | object | event-specific, below |
Headers: x-hevkar-event, x-hevkar-delivery (delivery id), x-hevkar-signature (t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">).
run.completed
A run started through the public API (/v1) succeeded. data is the RunResult plus agentId:
json
{
"id": "e2b4…",
"event": "run.completed",
"createdAt": "2026-11-21T10:15:08.000Z",
"projectId": "…",
"data": {
"runId": "…",
"agentId": "…",
"status": "succeeded",
"output": { "invoiceNumber": "RE-2026-118", "total": 249.9 },
"usage": { "inputTokens": 1830, "outputTokens": 120, "priceMicros": 1210 },
"latencyMs": 8420
}
}run.failed
A run started through the public API failed or was cancelled. Same data as run.completed, with status failed or cancelled and error:
json
{
"event": "run.failed",
"data": {
"runId": "…",
"agentId": "…",
"status": "failed",
"output": null,
"usage": { "inputTokens": 1200, "outputTokens": 0, "priceMicros": 410 },
"latencyMs": 30211,
"error": { "code": "PROVIDER_ERROR", "message": "The model provider failed: timeout" }
}
}Cancelled runs have error.code RUN_CANCELLED, also when an async run is cancelled while still queued (sent once, by the cancel request). Async runs that fail their checks when the worker picks them up (for example QUOTA_EXCEEDED, AGENT_GONE) also send run.failed.
run.waiting
A workflow run paused for a human approval or an external event. Sent for runs of every source (API, console playground, nested workflows).
json
{
"event": "run.waiting",
"data": {
"runId": "…",
"agentId": "…",
"nodeId": "review",
"kind": "approval",
"message": "Urgent letter from ACME GmbH",
"timeoutAt": "2026-11-22T10:15:00.000Z"
}
}| Field | Description |
|---|---|
kind | approval or event |
eventName | event waits: the name to send to POST /v1/runs/{id}/events |
message | approvals: the evaluated message, else null |
timeoutAt | when the timeout edge is taken, or null |
datasource.synced
A data source sync finished.
json
{
"event": "datasource.synced",
"data": {
"dataSourceId": "…",
"syncRunId": "…",
"stats": {
"documents": 120,
"added": 3,
"updated": 5,
"unchanged": 112,
"removed": 0,
"failed": 0,
"chunks": 940,
"embeddingTokens": 41210
}
}
}datasource.failed
A sync failed: data is {dataSourceId, syncRunId, error} when the sync itself failed (for example the website could not be reached), or {dataSourceId, syncRunId, stats} when it ran but every document failed.
ping
A test delivery sent from the console. data carries no event payload; answer with any 2xx.