Documentation
Task Progress

Progress

GET
https://api.mymidjourney.ai/api/v1/midjourney/message/{messageId}

Retrieve progress and response from a message you've sent in a previous request.

GET /api/v1/midjourney/message/{messageId}

Request Param

NameLocationTypeRequiredDescription
messageIdpathstringtruethe message ID from the previous request

Sample Response

{
  "messageId": "your-button-message-id",
  "prompt": "A little cat running on the grass",
  "uri": "https://cdn.discordapp.com/attachments/123/123/123.png",
  "progress": 100,
  "status": "DONE",
  "createdAt": "2023-08-01T14:03:01.817Z",
  "updatedAt": "2023-08-01T14:03:01.817Z",
  "buttons": [
    "U1",
    "U2",
    "U3",
    "U4",
    "🔄",
    "V1",
    "V2",
    "V3",
    "V4",
    "Zoom Out 2x",
    "Zoom Out 1.5x",
    "Vary (Strong)",
    "Vary (Subtle)"
  ],
  "originatingMessageId": "your-message-id",
  "ref": ""
}

Response Body

NameTypeRequiredDescription
messageIdstringtruethe messageId for the button process
promptstringtruethe original prompt for the task
createdAtstringtruetimestamp
updatedAtstringtruetimestamp
uristringfalsethe generated image URL
progressnumberfalsetask progress, out of 100
statusstringfalsethe status of the task, either PROCESSING, QUEUED, DONE, FAIL
errorstringfalseMidjourney error message, if any
buttonsstring[]falsebuttons for follow up actions
originatingMessageIdstringfalsethe originating message ID, if the message is for a follow up button action
refstringfalsethe reference value you pass earlier

Examples

const axios = require("axios")
 
const config = {
  method: "get",
  url: "https://api.mymidjourney.ai/api/v1/midjourney/message/0b5d24af-5c30-4ee5-8755-1e92db47bf2e",
  headers: {
    Authorization: "Bearer <your-token>",
  },
}
 
axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })