Queue Count
GET
https://api.imaginepro.ai/api/v1/discord/queue/{id}
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 number of jobs in the queue for the specified linked Discord account.
GET /api/v1/discord/queue/{id}
Request Param
Name | Location | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | the token id of the specified Discord account |
id
The Discord token id
can grab from this API.
Sample Response
{
"waiting": 129,
"active": 3
}
Response Body
Name | Type | Description |
---|---|---|
waiting | number | the number of waiting jobs in the queue |
active | number | the number of active jobs in the queue |
Response data
waiting
The number of waiting jobs in the queue.
active
The number of active jobs in the queue. Active jobs are jobs that have been sent by our queue, and currently being processed by Midjourney.
Examples
const axios = require("axios")
const config = {
method: "post",
url: "https://api.imaginepro.ai/api/v1/discord/queue/128",
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)
})