Piloterr
API referenceAlerts

Turn an alert channel off

POST
/v1/alert-channels/{id}/disable

Nothing is sent to it until POST /v1/alert-channels/{id}/enable: alerts already queued for it are dropped, and those that follow are not counted as missed. Projects keep their subscriptions, so turning it on again brings their alerts back as they were. disabled_reason is manual.

Authorization

ApiKeyAuth
headerX-Api-Key<token>

Path Parameters

id*string

The alert channel's id

Length1 <= length

Response Body

Turned off

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
Example Request
curl -X POST 'https://dataflow.piloterr.com/v1/alert-channels/string/disable'
Example Response
{
  "id": "cm4kq2d5e000cl208m7va4jzh",
  "type": "slack",
  "name": "Pricing team",
  "target": "https://hooks.slack.com/…pleKey",
  "recipients": [],
  "failure_count": 0,
  "last_error": null,
  "disabled_at": "2026-11-12T10:00:00.000Z",
  "disabled_reason": "manual",
  "retry_at": null,
  "failing_since": null,
  "missed_count": 0,
  "created_at": "2026-11-09T08:00:00.000Z"
}