Skip to main content
POST
/
v1
/
image
/
resize
{
  "input": "https://example.com/photo.jpg",
  "width": 800,
  "height": 600,
  "fit": "cover"
}
curl -X POST https://api.ringbee.dev/v1/image/resize \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@photo.jpg" \
  -F "width=800" \
  -F "height=600" \
  -F "fit=cover"
{
  "id": "job_abc123",
  "status": "pending"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
  "input": "https://example.com/photo.jpg",
  "width": 800,
  "height": 600,
  "fit": "cover"
}
curl -X POST https://api.ringbee.dev/v1/image/resize \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@photo.jpg" \
  -F "width=800" \
  -F "height=600" \
  -F "fit=cover"
ParamTypeDescription
widthintegerTarget width in pixels
heightintegerTarget height in pixels
fitstringResize mode: cover, contain, fill, inside, outside

Authorizations

X-API-Key
string
header
required

Body

input
string
required

Input file URL

width
integer

Target width in pixels

height
integer

Target height in pixels

fit
string

Resize mode: cover, contain, fill, inside, outside

webhook_url
string

URL to receive job completion notification

Response

Job accepted

id
string
Example:

"job_abc123"

status
enum<string>
Available options:
pending,
processing,
completed,
failed,
cancelled
Example:

"pending"