Piloterr
API-ReferenzDestinations

Add a destination

POST
/v1/destinations

A type, its config and credentials (none for a webhook), and the topics it receives. Every event of those topics, from every project of the workspace, is sent to it. 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). Deliveries leave from our fixed IP, which a firewall or a bucket policy can allow. For a webhook, the answer holds the signing secret; GET /v1/destinations/{id} shows it again. Credentials are kept encrypted and never shown again whole. A workspace has at most 20 destinations, every type together.

Autorisierung

ApiKeyAuth
headerX-Api-Key<token>

Anfragetext

application/json
  1. body
type*"webhook"

webhook: Webhook

Value in"webhook"
config*

The webhook the events are posted to

topics*array<>

Event types to receive, from every project of the workspace; "*" for all of them, run.results included (result rows in batches of up to 1 MiB at the end of each run). Repeats are dropped

Items1 <= items
description?string

Your note about the destination, up to 120 characters

Lengthlength <= 120

Antworttext

Created

application/json
  1. response
id*string
type*DestinationType
Value in"webhook""aws_sqs""gcp_pubsub""rabbitmq""aws_eventbridge""azure_servicebus""kafka"
target*string

Where events go, in one line: the URL, the queue, the topic, the broker… A webhook's URL is shown masked, its origin and the last 4 characters of its path (https://hooks.example.com/…a1b2), here and in config.url: its path or query is often a secret. Sending that masked URL back on a change keeps the stored one.

config*||||||

The type's config (WebhookConfig for a webhook, SqsConfig…)

credentials*

Each credential set, by name, as its first 4 characters (AKIA…) or …: never whole. Empty for a webhook (its signing secret is secret)

topics*array<>

"*" for every topic

description*string|null
disabled_at*|

Set when turned off, by you or by Outpost after repeated failures

created_at*string
secret*|

A webhook's Standard Webhooks signing secret (whsec_…), to verify webhook-signature; null for the other types

previous_secret_expires_at*|

After POST /v1/destinations/{id}/rotate-secret: until when the previous secret still signs too (each delivery then carries two signatures in webhook-signature); null when no previous secret is in use

curl -X POST 'https://dataflow.piloterr.com/v1/destinations' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "webhook",
  "config": {
    "url": "https://example.com/hooks/dataflow"
  },
  "topics": [
    "run.completed",
    "run.failed"
  ],
  "description": "Production webhook"
}'
Example Response
{
  "id": "8b0f4a1e-2c7d-4f93-9d5a-6e1c3b7a0f42",
  "type": "webhook",
  "target": "https://example.com/…flow",
  "config": {
    "url": "https://example.com/…flow"
  },
  "credentials": {},
  "topics": [
    "run.completed",
    "run.failed"
  ],
  "description": "Production webhook",
  "disabled_at": null,
  "created_at": "2026-11-09T08:00:00.000Z",
  "secret": "whsec_ZXhhbXBsZS1zaWduaW5nLXNlY3JldC0wMDAwMDA=",
  "previous_secret_expires_at": null
}