Discord API
1 operation. Authentication, errors and pagination work as described in the REST API overview.
Your linked Discord account (null when none)
GET/api/v1/discord/linkToken required · scope read
Linking and unlinking happen in the browser at /settings/discord (an OAuth round trip with Discord); the API only reports the link. serverEnabled says whether the community server integration is switched on.
Responses: 200 OK400, 401, 403, 404, 429
Response fields
| Name | Type | Description |
|---|---|---|
linkrequired | object | null | |
serverEnabledrequired | boolean | |
manageUrlrequired | string |
Example
curl 'https://incantory.ai/api/v1/discord/link' \
-H "Authorization: Bearer $INCANTORY_TOKEN"