Skip to main content
POST
Add a Slack channel
Needs notifications:create, and a role that can manage notifications (owners and managers). See Permissions.
Takes the connected Slack workspace (installation_id), a channel from List Slack channels and the events it gets (any of team_chat_events). The name defaults to # and the channel name. Approval requests carry Approve and Reject buttons unless approve_buttons is false. Discord and Telegram channels are added with Create a connect link. Webhook endpoints are made with Create a webhook.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
integer
required

The workspace. It must be one the key can reach.

kind
enum<string>
required
Available options:
slack
installation_id
integer
required

The connected Slack workspace, from slack_installations.

channel_id
string
required

A channel id from List Slack channels.

events
string[]
required

The events it gets: any of team_chat_events.

Minimum array length: 1
name
string

Defaults to # and the channel name.

Maximum string length: 100
approve_buttons
boolean

Approve and Reject buttons on approval requests; on unless false.

account_ids
integer[] | null

Only events about these accounts.

workspace_ids
(integer | enum<string>)[] | null

Other workspaces whose events it also gets, or ["*"] for every workspace you own.

Response

The new destination.

A Slack, Discord or Telegram channel that gets the workspace's notifications. Its connection details are never shown.

id
integer
required
workspace_id
integer
required

The workspace it belongs to.

kind
enum<string>
required
Available options:
slack,
discord,
telegram
name
string
required
Maximum string length: 100
approve_buttons
boolean
required

Whether approval requests carry Approve and Reject buttons.

events
string[]
required

The events it gets: any of team_chat_events.

account_ids
integer[] | null
required

Only events about these accounts; null for every account.

workspace_ids
(integer | enum<string>)[] | null
required

The other workspaces it gets events from, or ["*"] for every workspace the owner has; null for its own workspace alone.

active
boolean
required

False when it is paused: nothing is sent to it.

failing_since
string<date-time> | null
required

When its deliveries started failing; null while they work.

disabled_reason
string | null
required

Why PostSyncer turned it off; null otherwise.

created_at
string<date-time>
required
updated_at
string<date-time>
required
channel
object

Slack only: the channel.

chat
object

Telegram only: the chat.

team_name
string | null

Slack only: the Slack workspace.

stats_7d
object

Deliveries over the last 7 days: today and the six days before, oldest first.

last_delivery_at
string<date-time> | null

When the latest delivery was made; null before the first.