stet
API reference

List synced Slack channels

GET/api/channels
AuthorizationBearer <token>

A Stet API key (prefix bk_), created under Settings → API keys. The whole API requires the Growth plan or higher; keys are scoped read or write — composing and sending require write.

In: header

Query Parameters

q?string

Substring filter on channel name.

is_private?boolean
has_bot?boolean

Filter to channels Stet's bot has (or hasn't) joined.

Response Body

curl -X GET "https://app.stethq.com/api/channels?q=string&is_private=true&has_bot=true"
{
  "last_channel_sync_at": "2019-08-24T14:15:22Z",
  "channels": [
    {
      "id": "string",
      "slack_channel_id": "string",
      "name": "string",
      "is_private": true,
      "is_archived": true,
      "is_bot_member": true,
      "member_count": 0
    }
  ]
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}