const url = 'https://app.monitorly.cloud/api/v1/projects/PROJECT_ID/alert-channels';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"kind":"slack","name":"#payments-oncall","url":"https://hooks.slack.com/services/T000/B000/XXXX"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.monitorly.cloud/api/v1/projects/PROJECT_ID/alert-channels \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "kind": "slack", "name": "#payments-oncall", "url": "https://hooks.slack.com/services/T000/B000/XXXX" }'Adds a channel that receives the project’s alerts: email, Slack, Discord, Microsoft Teams, Google Chat, Mattermost, PagerDuty, ntfy, Pushover or a webhook. An email channel starts unverified and receives alerts once its address is confirmed with the emailed link. A webhook’s signing secret is in this answer only. Needs the project admin role.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The project’s id.
Example
PROJECT_IDRequest Bodyrequired
Section titled “Request Bodyrequired”object
pushover: the 30-character API token of the customer’s own Pushover application.
email: the address that receives alerts once it confirms.
Any kind but telegram (Telegram chats are linked with a link code). Each kind takes only its own fields.
1–100 characters; absent: the address, the provider’s name (Slack, Discord, …) or the URL’s host.
pagerduty: the 32-character integration key of an Events API v2 integration.
A channel added for the workspace: the workspace’s service notifications go to it (default true). Not accepted when the channel is added in a project.
ntfy, optional: an access token for a protected topic, sent as Authorization: Bearer.
ntfy: the topic, 1–64 letters, digits, - and _.
slack: the incoming webhook URL (https://hooks.slack.com/services/…); discord:
https://discord.com/api/webhooks/<id>/<token>; teams: the URL of a Workflows “When a Teams webhook
request is received” trigger; google_chat: https://chat.googleapis.com/v1/spaces/<space>/messages?key=…&token=…;
webhook and mattermost: an https URL; ntfy: the server, default https://ntfy.sh. Not taken by
pagerduty and pushover, whose address is fixed.
pushover: the 30-character user or group key.
Example
{ "kind": "slack", "name": "#payments-oncall", "url": "https://hooks.slack.com/services/T000/B000/XXXX"}Responses
Section titled “Responses”The channel; secret only for a webhook.
object
object
The last message the provider accepted; null for Telegram chats and channels that got nothing yet.
The last temporary error (a retry is scheduled), while it is newer than the last delivery.
The project the channel was added in (its project admins may manage it); null for a channel added for the
workspace. Which projects’ alerts it receives is projectIds.
The projects whose check alerts go to this channel. In a project’s lists only that project can appear here: present when the project picked the channel. Always sent; optional in the schema because it was added after the first clients (2026-11-15).
The workspace’s service notifications (nodes, backups) go to this channel too.
The email address, the provider’s host (Slack, Discord, Teams, Google Chat, PagerDuty, Pushover), the URL’s origin (webhook, Mattermost, the ntfy server) or the Telegram chat title. Never a full URL, a topic or a key.
Unverified email channels: when the confirmation link stops working.
Webhooks only, answered only here: the key of the Monitorly-Signature HMAC (see the webhooks documentation).
Example
{ "channel": { "createdAt": "2026-11-27T15:40:00Z", "id": "CHANNEL_ID", "kind": "slack", "name": "#payments-oncall", "projectId": "PROJECT_ID", "status": "active", "target": "hooks.slack.com" }}Bad Request.
request.malformed: the body or a parameter is not of the expected shapeauth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.scope_missing: the token lacks the scope this needs;detailnames itrequest.origin_mismatch,request.header_required: a changing request with a session comes from another site or lacksX-Monitorly-Request: 1
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Not Found.
request.not_found: it does not exist, or you cannot see it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Conflict.
alert_channel.duplicate: the workspace already has a channel with this email, URL, ntfy topic, PagerDuty key or Pushover keysalert_channel.limit_reached: the workspace reached the ceiling of 1000 channelsquota.channels_reached: the workspace has as many alert channels as its plan allows (Telegram chats are not counted)
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Payload Too Large.
request.too_large: the body is larger than 256 KiB
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unprocessable Entity.
field.required,field.too_long,field.invalid: a field breaks a rule;errorspoints at italert_channel.url_not_allowed: the address is not allowed: nothttps, credentials in the address, the host is an internal address, or the URL is not on the provider’s host and path (Slack, Discord, Microsoft Teams, Google Chat) or not its fixed address (PagerDuty, Pushover);detailgives the expected form
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Too Many Requests.
token.rate_limited: more than 10 requests a second with this tokensession.rate_limited: more than 5 changes a second from your sessionsalert_channel.mail_limited: the address got 3 confirmation emails today, or the workspace 20; nothing was sent or created; waitRetry-Aftersecondstoken.create_limited: more than 30 resources created within an hour from one token;Retry-Afterin seconds
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Headers
Section titled “Headers”Seconds to wait before trying again.