# `run.completed`

> For the complete documentation index, see [llms.txt](https://www.shortsintel.com/llms.txt). Every docs page is also available as markdown: add .md to its URL. To connect, read [agents.md](https://www.shortsintel.com/agents.md).

A webhook event: the signed JSON body we send to your endpoints.

## When it fires

A Run reached a terminal state: completed, partial or failed. The type is `run.completed` for all three; branch on `status` in the payload.

We `POST` it to every active endpoint you registered with the [Webhooks](https://www.shortsintel.com/docs/reference/webhooks) endpoints. A `2xx` acknowledges it; anything else is retried. The [webhooks guide](https://www.shortsintel.com/docs/concepts/webhooks) covers delivery, retries and replays.

## Headers

| Header | Description |
| --- | --- |
| `X-ShortsIntel-Signature` | `t=<unix seconds>,v1=<hex HMAC-SHA256 over "<t>.<body>">`; two `v1` during a rotation overlap. |
| `X-ShortsIntel-Event-Id` | The event id, `evt_...`, same as the body's `id`. |
| `X-ShortsIntel-Event-Type` | The dotted event type, same as the body's `type`. |

## Payload

`application/json`, the same shape for every event; fields that do not apply to `run.completed` are `null` or left out.

object

The thin webhook payload, exactly the bytes that were signed.

- `id` string required Event id, `evt_...`. Stable for one fact: a replay or a re-emission carries the same id, so dedupe on it.
- `type` string required one of `run.completed`, `tracker.changed`, `webhook.test` `run.completed`, `tracker.changed` or `webhook.test`.
- `created_at` string required format `date-time` When the event was created.
- `run_id` string required nullable The Run behind the event.
- `kind` string required nullable The Run's kind, lower case, e.g. `research`.
- `status` string required nullable `completed`, `partial` or `failed`.
- `charge_credits` number required nullable What the Run cost, as `GET /v1/runs/{id}` shows it.
- `tracker_id` string required nullable On `tracker.changed`.
- `change_report_id` string required nullable On `tracker.changed`.
- `collections` array of object On `tracker.changed` only: the Collections the Tracker sits in as of the event, by id and name, so you can route changes without a lookup. Absent on other events.
  - `id` string required The Collection's id.
  - `name` string required The Collection's name.
- `off_focus_count` number nullable On `tracker.changed` for a Tracker with a Focus only: how many off-focus Videos the Change Report hid. The report's Videos are at `links.changes`.
- `links` map of string required Absolute URLs to fetch the detail with your own key: `run`, `tracker`, `changes`, and `webhook` on a test event.

## Example payload

Indented for reading. The bytes on the wire are compact, and the signature covers those raw bytes.

```json
{
  "id": "evt_Xq3bN7tLw2RkV9pMdC4sYe",
  "type": "run.completed",
  "created_at": "2026-09-12T08:00:41.000Z",
  "run_id": "run_c07a41bb92",
  "kind": "research",
  "status": "completed",
  "charge_credits": 120,
  "tracker_id": null,
  "change_report_id": null,
  "links": {
    "run": "https://www.shortsintel.com/v1/runs/run_c07a41bb92"
  }
}
```

## Verifying the signature

Verify the signature header against the raw body before you trust or parse it. The webhooks guide walks through it with a worked example and verifiers in TypeScript and Python: [Verifying a signature](https://www.shortsintel.com/docs/concepts/webhooks#verifying-a-signature).

[Next tracker.changed](https://www.shortsintel.com/docs/reference/events/tracker.changed)
