# Get Progress

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/message/fetch/{messageId}:
    get:
      summary: Get Progress
      deprecated: false
      description: >-
        Retrieve progress and response from a message you've sent in a previous
        request.
      tags:
        - API Documentation
      parameters:
        - name: messageId
          in: path
          description: the unique identifier of our AI image generation request
          required: true
          example: d15c1541-229a-442b-9873-d3494dede12a
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: string
                    description: The unique identifier for the current request.
                  createdAt:
                    type: string
                    description: The timestamp of the job creation.
                  prompt:
                    type: string
                    description: The original prompt for the image generation task.
                  updatedAt:
                    type: string
                    description: The timestamp of the job update.
                  originalUrl:
                    type: string
                    description: >-
                      The original image URL in the Discord server, only valid
                      for 24 hours.
                  uri:
                    type: string
                    description: The generated image URL in ImaginePro CDN.
                  progress:
                    type: string
                    description: Task progress, out of 100.
                  status:
                    type: string
                    description: >-
                      The status of the task, either PROCESSING, QUEUED, DONE,
                      FAIL.
                  error:
                    type: string
                    description: Error message, if any.
                  buttons:
                    type: array
                    items:
                      type: string
                      description: >-
                        e.g. "U1", "U2", "U3", "U4", "🔄", "V1", "V2", "V3",
                        "V4", "Zoom Out 2x", "Zoom Out 1.5x", "Vary (Strong)",
                        "Vary (Subtle)"
                    description: The valid button values for the subsequential actions.
                  originalMessageId:
                    type: string
                    description: The unique identifier for the original Imagine task.
                  ref:
                    type: string
                    description: The reference value you passed in the previous requests.
                  images:
                    type: array
                    items:
                      type: string
                      description: U1/2/3/4 image urls
                    description: |-
                      A list of splited images exactly the same as U1/2/3/4
                      Please note that this is only work for Imagine.
                x-apifox-orders:
                  - success
                  - prompt
                  - createdAt
                  - updatedAt
                  - originalUrl
                  - uri
                  - progress
                  - status
                  - error
                  - buttons
                  - images
                  - originalMessageId
                  - ref
                required:
                  - success
                  - prompt
                  - createdAt
                  - updatedAt
              example:
                messageId: your-button-message-id
                prompt: A little cat running on the grass
                originalUrl: https://cdn.discordapp.com/attachments/123/123/123.png
                uri: https://cdn.imaginepro.ai/storage/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)
                images:
                  - https://cdn.imaginepro.ai/storage/123/123/123-1.png
                  - https://cdn.imaginepro.ai/storage/123/123/123-2.png
                  - https://cdn.imaginepro.ai/storage/123/123/123-3.png
                  - https://cdn.imaginepro.ai/storage/123/123/123-4.png
                originatingMessageId: your-message-id
                ref: ''
          headers: {}
          x-apifox-name: Success
      security:
        - bearer: []
      x-apifox-folder: API Documentation
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5160896/apis/api-215981214-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.imaginepro.ai
    description: Prod Env
security: []

```
