Piloterr
Referência da APIDestinations

run.empty event

A finished run has no successful row. Sent to every destination of the workspace subscribed to run.empty (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.

Corpo da requisição

The event's payload (version: 1)

application/json
  1. body

A finished run has no successful row

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.empty"
Value in"run.empty"
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

Corpo da resposta

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

Exemplos de requisições
POST/run.empty

A finished run has no successful row

Corpo da requisição
application/json
{
  "id": "evt_02b60f44cb2dc6d4e70320f53ed10c11",
  "version": 1,
  "type": "run.empty",
  "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": "failed",
    "reason": "error_rate",
    "trigger": "schedule",
    "parent_run_id": null,
    "total": 3,
    "done": 3,
    "ok": 0,
    "ko": 3,
    "credits": 0,
    "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": {
    "reason": "error_rate"
  },
  "url": "https://app.piloterr.com/app/acme/dataflow/runs/cm4j1m8ws0009l208b6yk3pne"
}