Piloterr
Référence de l'APIDestinations

run.changes_detected event

A run's results changed since the previous run. Sent to every destination of the workspace subscribed to run.changes_detected (or *): posted to a webhook, signed with Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature); the message body of a queue, topic or bus. Routing is per workspace and per topic only: a destination receives every event of its topics from every project of the workspace, with no per-project filter (filter on the payload's project.id, or use a project's alert channels). Alert channels subscribed to it receive the same payload, as a message.

Corps de la requête

The event's payload (version: 1)

application/json
  1. body

A run's results changed since the previous run

id*string

The event's id, the same in every channel and destination and in a resend: deduplicate on it (webhooks: also webhook-id). run.completed uses the run id

version*1

The payload's version

Value in1
type*"run.changes_detected"
Value in"run.changes_detected"
occurred_at*string

When it happened (ISO 8601, UTC)

tenant*

The workspace

project*
run*|

The run as GET /v1/runs/{id} returns it; null for project events

data*
url*|

The run, or project, in the dashboard

Corps de la réponse

Any 2xx within 10 s acknowledges it; anything else, or no answer, is retried, then reported (GET /v1/destinations/notices)

Exemples de requêtes
POST/run.changes_detected

A run's results changed since the previous run

Corps de la requête
application/json
{
  "id": "evt_525a39cf8b644acd534e53f40c44db75",
  "version": 1,
  "type": "run.changes_detected",
  "occurred_at": "2026-11-10T07:00:09.000Z",
  "tenant": {
    "id": "cm1a2b3c4000008jx7h2kq9mz",
    "slug": "acme"
  },
  "project": {
    "id": "cm4hz9r2k0003l208f1qd7vtx",
    "name": "Amazon price tracking"
  },
  "run": {
    "id": "cm4j1m8ws0009l208b6yk3pne",
    "project_id": "cm4hz9r2k0003l208f1qd7vtx",
    "status": "completed",
    "reason": null,
    "trigger": "schedule",
    "parent_run_id": null,
    "total": 3,
    "done": 3,
    "ok": 2,
    "ko": 1,
    "credits": 2,
    "search_credits": 0,
    "created_at": "2026-11-10T07:00:00.000Z",
    "started_at": "2026-11-10T07:00:02.000Z",
    "paused_at": null,
    "finished_at": "2026-11-10T07:00:09.000Z",
    "duration_ms": 7000,
    "results_expired_at": null,
    "eta_seconds": null
  },
  "data": {
    "against_run_id": "cm4i0a7qd0005l208r2wn8sgd",
    "added": 0,
    "removed": 0,
    "changed": 1,
    "fields": [
      {
        "field": "stock",
        "rows": 1
      }
    ]
  },
  "url": "https://app.piloterr.com/app/acme/dataflow/runs/cm4j1m8ws0009l208b6yk3pne"
}