Documentation
Linked Discord Token Details

List linked Discord Accounts

GET
https://api.mymidjourney.ai/api/v1/discord/tokens

The API only works for user with Pro 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

NameTypeDescription
idnumberthe linked Discord token id in our system
tokenstringthe linked Discord token
channelIdstringthe linked Discord channel id
serverIdstringthe linked Discord server id
isActivebooleanwhether the token is active or not
statusstringthe status of the token, can be FAST or RELAX or VERIFYING
infoobjectthe linked Discord acccount details
concurrencynumberthe concurrent limiting for the token

Status

  • FAST: the token is active and uses fast mode in Midjourney plan
  • RELAX: the token is active and uses relax mode in Midjourney plan
  • VERIFYING: the token is not active and is being verified

Examples

const axios = require("axios")
 
const config = {
  method: "get",
  url: "https://api.mymidjourney.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)
  })