Skip to main content
GET
List Slack channels
Needs accounts:read. See Permissions.
A Slack account is a whole workspace, so each post picks a channel. Send a channel’s id as accounts[].settings.channel_id on Create a post, or save it in the account’s Post defaults so posts without one go there.
  • Public channels are listed to everyone who can reach the account. PostSyncer posts in a public channel without joining it. A post with files joins the channel first, since Slack shares files only in a channel the app is in.
  • Private channels are listed only when the key belongs to the person who connected the workspace: their names are private to their members. A private channel shows up once the app is in it: type /invite @PostSyncer in the channel.
  • The list is the one PostSyncer keeps for the account, not read from Slack each time. When it’s more than 10 minutes old, it’s read again in the background: meta.refreshing is true, and asking again in a moment gives the new list. meta.synced_at says when it was last read, and is null until the first read.
  • When the last read from Slack failed, meta.error says why in a plain sentence, and the list is the last one read. PostSyncer then waits 5 minutes before reading again, so meta.refreshing stays false in that time. meta.error is null otherwise.

Errors

Authorizations

Authorization
string
header
required

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

Path Parameters

account
integer
required

The Slack workspace account.

Response

Channels in the connected Slack workspace.

data
object[]
required
meta
object
required