Piloterr
API-ReferenzDestinations

delivery.failed event

A run's results could not be delivered. Sent to every destination of the workspace subscribed to delivery.failed (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.

Anfragetext

The event's payload (version: 1)

application/json
  1. body

A run's results could not be delivered

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*"delivery.failed"
Value in"delivery.failed"
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

Antworttext

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

Beispielanfragen
POST/delivery.failed

A run's results could not be delivered

Anfragetext
application/json
{
  "id": "evt_ce3f9272d97b5809fd7ed598d150db64",
  "version": 1,
  "type": "delivery.failed",
  "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": {
    "delivery_id": "cm4lc9m5v000gl208y2rk7dpa",
    "delivery": "cloud",
    "error": "Access Denied"
  },
  "url": "https://app.piloterr.com/app/acme/dataflow/runs/cm4j1m8ws0009l208b6yk3pne"
}