Piloterr
Referência da APIAlerts

Add an alert channel

POST
/v1/alert-channels

Slack or Discord incoming webhook, or email recipients. Webhook URLs are stored encrypted and only shown masked (target). Email recipients outside the workspace get a confirmation email: alerts only go to members and confirmed addresses (recipients[].status), and every alert email has an unsubscribe link. Those confirmation emails count against the workspace's 50 a day, and its 100 addresses waiting (429 confirmation_quota: the channel is not created). Send a test with POST /v1/alert-channels/{id}/test, then subscribe projects to it with PUT /v1/projects/{id}/alerts. A workspace has at most 50 channels.

Autorização

ApiKeyAuth
headerX-Api-Key<token>

Corpo da requisição

application/json
  1. body
type*string

slack and discord post to an incoming webhook (url); email writes to recipients. The in_app channel is made by Dataflow and cannot be added

Value in"slack""discord""email"
name*string

Your name for the channel, up to 80 characters

Length1 <= length <= 80
url?string

Incoming webhook URL, required for slack (https://hooks.slack.com/services/…) and discord (https://discord.com/api/webhooks/…)

recipients?array<>

Email addresses, required for email. Those outside the workspace get a confirmation email and receive no alert until they confirm

Items1 <= items <= 10

Corpo da resposta

Created

application/json
  1. response
id*string
type*string

in_app: the dashboard's notifications (the bell), one per workspace, made by Dataflow: every member who can view Dataflow gets them. It cannot be added or removed, only turned off and on

Value in"slack""discord""email""in_app"
name*string
target*string

Webhook host and the end of its path, the recipients, or members who can view Dataflow (in_app)

recipients*array<>

An email channel's addresses (empty for the others). Alerts only go to members and verified addresses: an address outside the workspace gets a confirmation email first.

failure_count*integer
last_error*|

The provider's last refusal, or why the channel was turned off

disabled_at*string|null
disabled_reason*|

rejected: the provider said the webhook or recipient is gone; unreachable: the provider stayed down through every retry; manual: turned off with POST /v1/alert-channels/{id}/disable

Value in"rejected""unreachable""manual"null
retry_at*|

Set while the provider is down: when the channel is tried again

failing_since*string|null
missed_count*integer

Alerts not sent since failing_since, told once it works again

created_at*string
curl -X POST 'https://dataflow.piloterr.com/v1/alert-channels' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "slack",
  "name": "Pricing team",
  "url": "https://hooks.slack.com/services/T0EXAMPLE/B0EXAMPLE/exampleKey"
}'
Example Response
{
  "id": "cm4kq2d5e000cl208m7va4jzh",
  "type": "slack",
  "name": "Pricing team",
  "target": "https://hooks.slack.com/…pleKey",
  "recipients": [],
  "failure_count": 0,
  "last_error": null,
  "disabled_at": null,
  "disabled_reason": null,
  "retry_at": null,
  "failing_since": null,
  "missed_count": 0,
  "created_at": "2026-11-09T08:00:00.000Z"
}