Integrations
Preview

List the Teams or Discord channels

The channels connected for this chat, by name, with the host of each webhook address and its last four characters. The address itself is never returned.

GET
/integrations/chat-webhooks/{kind}/channels
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

kind*string

Which chat the channels are in.

Value in"teams""discord"
limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

Response Body

A page of channels.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/integrations/chat-webhooks/teams/channels'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "teams",      "name": "string",      "host": "string",      "tail": "string",      "paused": true,      "failing": true,      "lastError": "string",      "lastOkAt": "2019-08-24T14:15:22Z",      "lastFailureAt": "2019-08-24T14:15:22Z",      "rules": {        "events": [          "string"        ],        "environments": [          "string"        ],        "teams": [          "string"        ],        "minSeverity": "info"      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}