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`.
/v1/orgs/{org}/discord-servers/{server}/channelsThe 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 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
The org's id
^org_[0-9a-hjkmnp-tv-z]{26}$The Discord server's id
^dsv_[0-9a-hjkmnp-tv-z]{26}$Query Parameters
At most this many items, 200 at the most.
1 <= value <= 20050The 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"}Disconnect a Discord server DELETE
Takes the bot out of the server and stops every role the org's gates give there, from now on: whoever holds one keeps it, and nobody is checked there again. Connecting it again starts afresh. Needs `org.integrations.edit`. Recorded as `discord_server.disconnected`.
List a Discord server's role windows GET
Every gated role of the server whose gate gives those already holding it time to verify (`existing_members: verify`), each with its announced window: its settings (Synq's defaults for one never saved), its state, every reminder with when it goes, and the counts of the role's holders. Needs `org.integrations.view`.