Accounts
List Slack channels
List the channels of a connected Slack workspace, to post into one.
GET
List Slack channels
Needs
accounts:read. See Permissions.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 @PostSyncerin 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.refreshingistrue, and asking again in a moment gives the new list.meta.synced_atsays when it was last read, and isnulluntil the first read. - When the last read from Slack failed,
meta.errorsays why in a plain sentence, and the list is the last one read. PostSyncer then waits 5 minutes before reading again, someta.refreshingstaysfalsein that time.meta.errorisnullotherwise.
Errors
Related
- Post to Slack: what a Slack post takes.
- Create a post:
channel_idinsettings.