Destinations
Send Dataflow's events to a webhook, an Amazon SQS queue, Amazon EventBridge, a Google Pub/Sub topic, RabbitMQ, Kafka or Azure Service Bus.
A destination is where Dataflow sends your workspace's events: a run that ends, fails or slows down, a schedule skipped, the result rows of each run. Each destination has a type, its config (where to send), its credentials (how to sign in, none for a webhook) and the topics it receives.
| Type | type | Receives | Guide |
|---|---|---|---|
| Webhook | webhook | A signed POST to your HTTPS endpoint | Webhook |
| Amazon SQS | aws_sqs | A message on a standard queue | Amazon SQS |
| Amazon EventBridge | aws_eventbridge | An event on a bus | Amazon EventBridge |
| Google Cloud Pub/Sub | gcp_pubsub | A message on a topic | Google Cloud Pub/Sub |
| RabbitMQ | rabbitmq | A message on an exchange | RabbitMQ |
| Kafka | kafka | A record on a topic | Kafka |
| Azure Service Bus | azure_servicebus | A message on a queue or topic | Azure Service Bus |
Every type gets the same events and payload, with the same retries, delivery log and resends.
Add a destination
In the dashboard: Dataflow → Settings → Destinations → Add a destination. Pick a type, fill in its fields, choose the events, and save.
Through the API, POST /v1/destinations takes the type, its config and credentials, and the topics. Each type's guide has a complete example. Destination routes need a key with Admin Dataflow access, outside the development category, because they send your data out of your workspace. See What a key can do.
topicslists the events to receive, at least one, or["*"]for all of them,run.resultsincluded. A destination receives the events of every project of your workspace. See Routing.descriptionis optional, up to 120 characters.- A workspace has at most 20 destinations, every type together (
409 destinations_limit). GET /v1/destinationslists your destinations andGET /v1/destinations/{id}shows one.targetsums up in one line where events go.
Credentials
Credentials are sent once, when you add or change a destination. The delivery service keeps them encrypted, and answers never show them in full: each one shows as its first 4 characters followed by … (AKIA…), or as … alone for short values and JSON keys.
Give each destination credentials that can only send to that one queue, topic or bus. Each guide lists the smallest permissions that work.
Where deliveries come from
Deliveries leave from fixed public IP addresses, so you can allow them alone in a firewall, a queue policy or a broker allowlist. Every type leaves from our egress proxy's address, 116.203.84.164, except Azure Service Bus, which connects from our delivery server's own address. GET /v1/destinations/types gives each type's addresses, and the dashboard shows them under the type you pick; we tell customers before an address changes:
curl https://dataflow.piloterr.com/v1/destinations/types -H "x-api-key: YOUR_API_KEY"{
"items": [
{ "type": "webhook", "name": "Webhook", "network": "egress", "exit_ips": ["116.203.84.164"] },
{ "type": "kafka", "name": "Kafka", "network": "egress", "exit_ips": ["116.203.84.164"] },
{ "type": "azure_servicebus", "name": "Azure Service Bus", "network": "outpost", "exit_ips": ["DELIVERY_SERVER_IP"] }
]
}networkisegressfor every type but Azure Service Bus, andoutpost(our delivery server) for Azure Service Bus.exit_ipsis empty when no address is published for that type.- Hosts you give (a webhook URL, RabbitMQ and Kafka brokers) must be reachable from the internet. A private address, or a name that resolves to one, is refused (
422 validation_failed). - RabbitMQ and Kafka connections use TLS, on port 5671, 9092, 9093, 9094 or 9096.
Change or remove a destination
PATCH /v1/destinations/{id}changes someconfigfields (the others stay, and the whole config is checked again), all thecredentialsat once, thetopics, thedescription(nullclears it), orenabled(falseturns the destination off,trueturns it back on). Thetypecannot change: add a new destination instead.DELETE /v1/destinations/{id}removes it, credentials included.
curl -X PATCH https://dataflow.piloterr.com/v1/destinations/DESTINATION_ID \
-H "x-api-key: YOUR_API_KEY" -H "content-type: application/json" \
-d '{"topics": ["run.completed", "run.failed"], "enabled": true}'Errors
| Status | Code | Meaning and fix |
|---|---|---|
422 | validation_failed | A field is missing or malformed, a host is private, not over TLS or on a closed port, or the destination service refused it. details lists the fields (config.queue_url, credentials.password…): fix them and send again. |
422 | destination_type_unavailable | This type is not open on this server. GET /v1/destinations/types lists the open ones. |
404 | destination_not_found | No such destination for your workspace. Check the id with GET /v1/destinations. |
409 | destinations_limit | The workspace already has 20 destinations (details.max_destinations). Remove one first. |
409 | destination_disabled | Resending to a destination that is turned off. Turn it on first. |
429 | rate_limited | Too many tests. Wait Retry-After seconds. |
502 | outpost_failed | The delivery service failed. Try again. |
503 | destinations_unavailable | Destinations are not available right now. Try again later. |