curl --request POST \
--url https://api.occtoo.com/v1/image-conversions/{id}/convert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parameters": {
"mode": "FillBackground",
"targetSize": 1200,
"aspectRatio": "1:1",
"paddingPercent": 5,
"background": "FFFFFF",
"outputFormat": "Jpg",
"quality": 85
}
}
'{
"id": "0193a5c4-7e1f-7b2a-9c3d-4e5f60718293",
"status": "Queued",
"position": 12,
"queuedAt": "2026-11-29T10:14:03.512417+00:00",
"result": null,
"error": null
}Queue a conversion of the uploaded original and get the job to read its result from
Queues a conversion of the uploaded original with a preset or with parameters and returns its job. The Location header holds the job’s URL. Read the job until status is Completed or Failed.
Send exactly one of preset (the id of one of the tenant’s presets) or parameters. A preset converts with its current parameters. Neither or both answers 400 with errors.Preset, and an unknown or deleted preset answers 404.
An original that isn’t an image that can be converted ends the job as Failed, with an error that says why.
Every call queues a new job and converts the original into a new output. One original can be converted any number of times with different presets or parameters. A call resent after a 500 may have queued the first conversion too.
curl --request POST \
--url https://api.occtoo.com/v1/image-conversions/{id}/convert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parameters": {
"mode": "FillBackground",
"targetSize": 1200,
"aspectRatio": "1:1",
"paddingPercent": 5,
"background": "FFFFFF",
"outputFormat": "Jpg",
"quality": 85
}
}
'{
"id": "0193a5c4-7e1f-7b2a-9c3d-4e5f60718293",
"status": "Queued",
"position": 12,
"queuedAt": "2026-11-29T10:14:03.512417+00:00",
"result": null,
"error": null
}Authorizations
Body
Response
The queued conversion's job. The Location header holds its URL.
A queued conversion of an uploaded original.
Was this page helpful?