Skip to main content
POST
Needs notifications:create, and a role that can manage notifications (owners and managers). See Permissions.
Give url to the person. What happens when they open it depends on kind:
  • Slack: they allow PostSyncer in their Slack workspace. Then pick a channel with List Slack channels and add it with Add a Slack channel.
  • Discord: they pick a server and a channel, and that channel is added with the team’s default events.
  • Telegram: the bot’s start link, the same one the app makes. chat_type is group (they add the bot to a group) or private (a chat with the bot). Optional events and account_ids set what the chat gets.
Slack’s and Discord’s links finish with no PostSyncer login. Each works once, for 30 minutes, and only for this workspace and the key’s user, while their role still lets them manage notifications. The page they land on says what happened and sends them back to you. A Telegram link lasts 15 minutes. 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,
discord,
telegram
chat_type
enum<string>

Telegram only, and needed there: a group, or a private chat with the bot.

Available options:
group,
private
events
string[]

Telegram only: the events the chat gets; the defaults when left out.

Minimum array length: 1
account_ids
integer[] | null

Telegram only: only events about these accounts.

Response

The link.

A link the person opens to connect Slack, Discord or Telegram.

url
string
required

Slack's or Discord's page to allow PostSyncer, or the Telegram bot's start link.

kind
enum<string>
required
Available options:
slack,
discord,
telegram
workspace_id
integer
required
expires_at
string<date-time>
required

The link works until then: 30 minutes for Slack and Discord, 15 for Telegram.