Skip to main content
POST
/
api
/
images
/
upload
Upload an image
curl --request POST \
  --url https://app.demandiq.com/api/images/upload \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "image": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "fileName": "<string>",
    "originalFileName": "<string>",
    "mimeType": "<string>",
    "fileSize": 123,
    "width": 123,
    "height": 123,
    "s3Url": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  },
  "optimization": {
    "originalSize": 123,
    "optimizedSize": 123,
    "savings": "45%"
  }
}

Body

multipart/form-data
file
file
required

Response

Image uploaded

image
object
optimization
object