Piloterr
Destinations

Test, delivery log and resend

Send a test event to a destination, follow every delivery attempt, resend an event, and see what went wrong.

These work the same for every destination type. In the dashboard, they are on Dataflow → Settings → Destinations: Send a test event on each destination, and the delivery history below the list.

Send a test event

curl -X POST https://dataflow.piloterr.com/v1/destinations/DESTINATION_ID/test \
  -H "x-api-key: YOUR_API_KEY"
{ "event_id": "test_8f0c2a4e-…" }
  • It sends one event of the destination's first topic (run.completed for ["*"]), to this destination only, for a project named Test from Dataflow, with run: null and url: null.
  • Its data follows the topic's schema with example figures, plus "test": true: your code can parse it like a real event and skip it.
  • The answer is 202 with the event id, also the payload's id. The attempt shows in the delivery log within seconds: GET /v1/destinations/attempts?event_id=….
  • A destination takes one test a minute, and a workspace 20 tests an hour; past that, 429 rate_limited with Retry-After.

Retries

A delivery that fails is tried again later, with growing delays: 30 seconds, then 1, 5 and 15 minutes, then 1 hour. After those 5 retries, the event is reported (below) and you can resend it.

What counts as a failure depends on the type: for a webhook, anything but a 2xx within 10 seconds; for a queue, topic or bus, a connection, sign-in or permission error, or a refusal by the service.

A destination that keeps failing, 20 failed deliveries in a row, is turned off: disabled_at is set and you are told (below). Events sent while it is off are not delivered to it. Fix the cause, then turn it back on with PATCH /v1/destinations/{id} and {"enabled": true}, or the switch on the destination in the dashboard.

Delivery log

GET /v1/destinations/attempts lists every delivery attempt, newest first:

{
  "items": [
    {
      "id": "ATTEMPT_ID",
      "event_id": "RUN_ID",
      "destination_id": "DESTINATION_ID",
      "topic": "run.completed",
      "status": "failed",
      "code": "503",
      "attempt_number": 2,
      "manual": false,
      "latency_ms": 10004,
      "time": "2026-12-01T08:43:12.000Z"
    }
  ],
  "next": "CURSOR"
}
  • Filter with destination_id, event_id and status (success or failed), set limit (1 to 100, default 50), and pass next to read the next page. Only next: null ends the log: a page may hold fewer than limit attempts, even none, while more follow.
  • manual is true for a resend. Dates are ISO 8601 in UTC. The log keeps 30 days. A workspace that never had a destination has an empty log.
  • code says what happened. It depends on the type:
Typecode
WebhookThe HTTP status your endpoint answered (200, 503…), or a network error such as connection_refused or timeout.
Amazon SQS, Amazon EventBridge, Google Cloud Pub/Sub, Azure Service BusOK, or ERR for any failure. The cause is in your cloud's logs, or found by checking the guide's permissions and network steps.
RabbitMQOK, or dns_error, connection_refused, connection_reset, timeout, tls_error, auth_failed, access_denied, exchange_not_found, channel_error, connection_forced, rabbitmq_error.
KafkaOK, or dns_error, connection_refused, timeout, tls_error, auth_failed, topic_not_found, message_too_large, kafka_error.

Resend an event

curl https://dataflow.piloterr.com/v1/destinations/events/EVENT_ID/retry \
  -H "x-api-key: YOUR_API_KEY" -H "content-type: application/json" \
  -d '{"destination_id": "DESTINATION_ID"}'

It answers 202 with {"ok": true}: the event goes to that destination again, as a manual attempt with the same event id. The destination must be on (409 destination_disabled otherwise) and must have received the event before. EVENT_ID is the event_id of the delivery log. In the dashboard, open a delivery and select Resend.

Problems

When a destination is turned off, or an event runs out of retries, Dataflow tells you:

  • GET /v1/destinations/notices lists the 20 latest problems of the last 30 days. kind is destination_disabled, retries_exhausted or consecutive_failure (a warning before the destination is turned off), message says what to do, and count is how many times it happened: a repeat within a day of the last one only adds to the count.
  • Your alert channels that are on get a message the first time, not for those repeats. Without an email channel, the workspace's owners and admins get an email.
{
  "items": [
    {
      "id": "NOTICE_ID",
      "destination_id": "DESTINATION_ID",
      "kind": "retries_exhausted",
      "topic": "run.completed",
      "message": "A run.completed event could not be delivered to https://example.com/webhooks/piloterr, even after every retry. Resend it from the delivery log once the endpoint works.",
      "count": 3,
      "created_at": "2026-12-01T09:45:00.000Z",
      "last_at": "2026-12-01T14:02:00.000Z"
    }
  ]
}

For the API's own errors (validation_failed, destinations_limit…), see Errors.

On this page