Hanzo AI
OpenapiProvider

List channels

Lists Slack conversations for the caller's connected workspace.

GET /v1/provider/slack/channels

Addresshttps://api.hanzo.ai/v1/provider/slack/channels
MethodGET
Operationget_provider_slack_channels
AuthAuthorization: Bearer $HANZO_API_KEY

Lists Slack conversations for the caller's connected workspace. Read next_cursor until empty to discover channels, including private channels or group DMs when types requests them and the bot has their read scopes.

Request

2 fields.

FieldInTypeRequiredDescription
typesquerystringTypes selects public_channel, private_channel, im or mpim, comma-separated.
cursorquerystringCursor continues the previous page's next_cursor.

Response

StatusBodyMeaning
200provider.slackChannelsOutok
defaultproblem-detailsrefused

200 body — 8 fields.

FieldInTypeAlwaysDescription
channelsbodyprovider.slackConversation[]Channels contains one page of conversations visible to the bot.
channels[].idbodystringID is the channel ID to pass to message reads and sends.
channels[].is_imbodybooleanIsIM identifies a direct message.
channels[].is_memberbodybooleanIsMember reports whether Hanzo has joined this channel.
channels[].is_mpimbodybooleanIsMPIM identifies a group direct message.
channels[].is_privatebodybooleanIsPrivate identifies a private channel or conversation.
channels[].namebodystringName is the channel name, without #.
next_cursorbodystringNextCursor is empty when there are no more pages.

Failure carries the platform error shape — see Errors.

Examples

hanzo provider slack channels

Provider API · All Hanzo APIs · Interactive reference

How is this guide?

On this page