Skip to content

Add a workspace channel

POST
/api/v1/workspaces/{workspaceId}/alert-channels
curl --request POST \
--url https://app.monitorly.cloud/api/v1/workspaces/WORKSPACE_ID/alert-channels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "appToken": "example", "email": "example", "kind": "email", "name": "example", "routingKey": "example", "serviceNotifications": true, "token": "example", "topic": "example", "url": "example", "userKey": "example" }'

Adds a channel for the workspace’s service notifications, which projects may then pick for their alerts. Workspace owner or admin.

workspaceId
required
string format: uuid

The workspace’s id.

Example

WORKSPACE_ID
Media typeapplication/json
object
appToken

pushover: the 30-character API token of the customer’s own Pushover application.

string | null
email

email: the address that receives alerts once it confirms.

string | null
kind
required

Any kind but telegram (Telegram chats are linked with a link code). Each kind takes only its own fields.

string
Allowed values: email slack webhook telegram discord teams google_chat mattermost pagerduty ntfy pushover
name

1–100 characters; absent: the address, the provider’s name (Slack, Discord, …) or the URL’s host.

string | null
routingKey

pagerduty: the 32-character integration key of an Events API v2 integration.

string | null
serviceNotifications

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.

boolean | null
token

ntfy, optional: an access token for a protected topic, sent as Authorization: Bearer.

string | null
topic

ntfy: the topic, 1–64 letters, digits, - and _.

string | null
url

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.

string | null
userKey

pushover: the 30-character user or group key.

string | null

The channel; secret only for a webhook.

Media typeapplication/json
object
channel
required
object
brokenAt
string | null
brokenReason
string | null
createdAt
required
string
id
required
string format: uuid
kind
required
string
Allowed values: email slack webhook telegram discord teams google_chat mattermost pagerduty ntfy pushover
lastDeliveredAt

The last message the provider accepted; null for Telegram chats and channels that got nothing yet.

string | null
lastError

The last temporary error (a retry is scheduled), while it is newer than the last delivery.

string | null
lastErrorAt
string | null
name
required
string
projectId

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.

string | null format: uuid
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).

Array<string>
serviceNotifications

The workspace’s service notifications (nodes, backups) go to this channel too.

boolean
status
required
string
Allowed values: unverified active broken
target
required

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.

string
verifyExpiresAt

Unverified email channels: when the confirmation link stops working.

string | null
signingSecret

Webhooks only, answered only here: the key of the Monitorly-Signature HMAC (see the webhooks documentation).

string | null

Example

{
"channel": {
"id": "ID",
"kind": "email",
"projectId": "PROJECT_ID",
"projectIds": [
"ID"
],
"status": "unverified"
}
}

Bad Request.

  • request.malformed: the body or a parameter is not of the expected shape
  • auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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 ended
  • token.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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 this
  • token.scope_missing: the token lacks the scope this needs; detail names it
  • request.origin_mismatch, request.header_required: a changing request with a session comes from another site or lacks X-Monitorly-Request: 1
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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 keys
  • alert_channel.limit_reached: the workspace reached the ceiling of 1000 channels
  • quota.channels_reached: the workspace has as many alert channels as its plan allows (Telegram chats are not counted)
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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; errors points at it
  • alert_channel.url_not_allowed: the address is not allowed: not https, 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); detail gives the expected form
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

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 token
  • session.rate_limited: more than 5 changes a second from your sessions
  • alert_channel.mail_limited: the address got 3 confirmation emails today, or the workspace 20; nothing was sent or created; wait Retry-After seconds
  • token.create_limited: more than 30 resources created within an hour from one token; Retry-After in seconds
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}
Retry-After
integer
>= 1

Seconds to wait before trying again.