GET /images/{id}

Retrieves a specific generated image by its unique ID.

Path parameters

  • id string Required

Responses

  • 200 application/json

    success

    Hide response attributes Show response attributes object
    • success boolean
    • code integer(int32)
    • message string
    • data object
      Hide data attributes Show data attributes object
      • id string

        Unique identifier for the media

      • originalFilename string

        Original filename of the media

      • url string(uri)

        URL to access the media from CDN

      • mediaType string

        Type of the media (e.g., image/png)

      • fileSize integer

        Size of the file in bytes

      • createdAt string(date-time)

        Timestamp when the media was created

      • updatedAt string(date-time)

        Timestamp when the media was last updated

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
GET /images/{id}
curl \
 --request GET 'https://api.huy-devops.site/api/images/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "success": true,
  "code": 200,
  "message": "string",
  "data": {
    "id": "string",
    "originalFilename": "string",
    "url": "https://example.com",
    "mediaType": "string",
    "fileSize": 42,
    "createdAt": "2025-05-04T09:42:00Z",
    "updatedAt": "2025-05-04T09:42:00Z"
  }
}
Response examples (404)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}
Response examples (500)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}