SynqDocs
Management APIDiscord servers

Read a connected server's text channels from Discord

The server's text channels, in Discord's order, read from Discord now, with whether Synq's bot can post its Verify message in each. Needs `org.integrations.view`.

GET/v1/orgs/{org}/discord-servers/{server}/channels

The server's text channels, in Discord's order, read from Discord now, with whether Synq's bot can post its Verify message in each. Needs org.integrations.view.

Authorization

bearer
AuthorizationBearer <token>

An org API key (sk_live_…, sk_test_…), or an access token from the Synq issuer (the synq brand, on the accounts host) for this API.

In: header

Path Parameters

org*string

The org's id

Match^org_[0-9a-hjkmnp-tv-z]{26}$
server*string

The Discord server's id

Match^dsv_[0-9a-hjkmnp-tv-z]{26}$

Query Parameters

limit?integer

At most this many items, 200 at the most.

Range1 <= value <= 200
Default50
cursor?string

The previous page's next_cursor, for the page after it.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.synq.build/v1/orgs/org_01h455vb4pex5vsknk084sn02q/discord-servers/dsv_01h455vb4pex5vsknk084sn02q/channels" \  -H "Authorization: Bearer $SYNQ_API_KEY"
{  "data": [    {      "id": "string",      "name": "verify",      "position": 0,      "parent_id": "string",      "can_post": true,      "can_pin": true    }  ],  "next_cursor": "string"}