Skip to main content
POST
/
utils
/
media
/
images
/
resize
Error
A valid request URL is required to generate request examples
{
  "success": true,
  "data": {
    "url": "<string>",
    "width": 123,
    "height": 123,
    "size_kb": 123,
    "format": "<string>",
    "activity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

Enter token in format (Bearer )

Body

multipart/form-data
width
integer
required

Target width in pixels

Example:

800

image
file

The image file

url
string<uri>

Alternative: URL of image

height
integer

Target height in pixels

Example:

600

fit
enum<string>
Available options:
contain,
cover,
fill,
stretch,
crop
Example:

"cover"

quality
integer
Required range: 1 <= x <= 100
Example:

85

format
enum<string>
Available options:
jpg,
png,
webp,
gif,
avif
Example:

"webp"

keep_forever
boolean
Example:

false

Response

200 - application/json

Image resized successfully

success
boolean
Example:

true

data
object