List linked Discord Accounts
GET
https://api.imaginepro.ai/api/v1/discord/tokens
The API only works for user with DIY or Dedicated plan, and linked their Discord account (opens in a new tab).
The API will return the list of linked Discord accounts in an array format.
GET /api/v1/discord/tokens
Sample Response
[
{
"id": 198,
"token": "MTE2OTc1Nzg5NjEwNDQ4NDkxOA.GRXmdc.YD02mkT1NkOGeDTJa8CT98m5QaC41EERSDFAS",
"channelId": "1169758569336333381",
"serverId": "1169758569336478123",
"isActive": true,
"status": "FAST",
"info": {
"jobMode": "",
"runningJobs": "None",
"relaxedUsage": "0 images",
"subscription": "Basic (Active monthly, renews next on <t:1709417882>)",
"lifetimeUsage": "674 images",
"queuedJobsFast": "0",
"visibilityMode": "Public",
"queuedJobsRelax": "0",
"fastTimeRemaining": "199.00/200.0 minutes (99.50%)"
},
"concurrency": 2
}
]
Response Body
Name | Type | Description |
---|---|---|
id | number | the linked Discord token id in our system |
token | string | the linked Discord token |
channelId | string | the linked Discord channel id |
serverId | string | the linked Discord server id |
isActive | boolean | whether the token is active or not |
status | string | the status of the token, can be FAST or RELAX or VERIFYING |
info | object | the linked Discord acccount details |
concurrency | number | the concurrent limiting for the token |
Status
FAST
: the token is active and usesfast
mode in Midjourney planRELAX
: the token is active and usesrelax
mode in Midjourney planVERIFYING
: the token is not active and is being verified
Examples
const axios = require("axios")
const config = {
method: "get",
url: "https://api.imaginepro.ai/api/v1/discord/tokens",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <your-token>",
},
}
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data))
})
.catch(function (error) {
console.log(error)
})