Piloterr
Référence de l'APIDestinations

Change a destination

PATCH
/v1/destinations/{id}

Its config, credentials, topics or description, or turn it off and on (enabled), e.g. back on after repeated failures turned it off. Only the fields sent change; config is checked again whole, with the fields kept. 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).

Authentification

ApiKeyAuth
headerX-Api-Key<token>

Paramètres de chemin

id*string

The destination's id

Length1 <= length

Corps de la requête

application/json
  1. body
config?

Fields of the destination type's config to change ({ "url": … } for a webhook); the others stay. The type itself cannot change

credentials?

Every credential of the type, replacing the current ones (a webhook has none: its signing secret stays)

topics?array<>

Replaces them all

Items1 <= items
description?|

Replaces your note, up to 120 characters; null removes it

Lengthlength <= 120
enabled?boolean

Turn the destination on or off

Corps de la réponse

Updated

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
Example Request
curl -X PATCH 'https://dataflow.piloterr.com/v1/destinations/string' \
  -H 'Content-Type: application/json' \
  -d '{
  "topics": [
    "*"
  ],
  "description": "Production webhook",
  "enabled": true
}'
Example Response
{
  "id": "8b0f4a1e-2c7d-4f93-9d5a-6e1c3b7a0f42",
  "type": "webhook",
  "target": "https://example.com/…flow",
  "config": {
    "url": "https://example.com/…flow"
  },
  "credentials": {},
  "topics": [
    "*"
  ],
  "description": "Production webhook",
  "disabled_at": null,
  "created_at": "2026-11-09T08:00:00.000Z"
}