Get a conversion job, with a link to download the result once it's completed
curl --request GET \
--url https://api.occtoo.com/v1/image-conversions/jobs/{jobId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.occtoo.com/v1/image-conversions/jobs/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.occtoo.com/v1/image-conversions/jobs/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.occtoo.com/v1/image-conversions/jobs/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.occtoo.com/v1/image-conversions/jobs/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.occtoo.com/v1/image-conversions/jobs/{jobId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/image-conversions/jobs/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "0193a5c4-7e1f-7b2a-9c3d-4e5f60718293",
"status": "Queued",
"position": 12,
"queuedAt": "2026-11-29T10:14:03.512417+00:00",
"result": null,
"error": null
}Image conversions
Get a conversion job, with a link to download the result once it's completed
Returns a conversion job. Read it every 1–2 seconds until status is Completed or Failed. A queued job waits its turn behind other conversions, so the time until Completed depends on how much is queued. While the job is queued, position says about how many jobs are ahead of it.
Queued: waiting to be converted. A failed attempt that will be retried returns the job toQueued.Running: being converted.Completed:resultholds a signedurlto download the converted image. Each read signs a fresh link, valid for 1 hour.Failed:errorsays why.
A job can be read for at least a day after it finishes. Once the converted image is deleted, reading a completed job answers 404.
GET
/
v1
/
image-conversions
/
jobs
/
{jobId}
Get a conversion job, with a link to download the result once it's completed
curl --request GET \
--url https://api.occtoo.com/v1/image-conversions/jobs/{jobId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.occtoo.com/v1/image-conversions/jobs/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.occtoo.com/v1/image-conversions/jobs/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.occtoo.com/v1/image-conversions/jobs/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.occtoo.com/v1/image-conversions/jobs/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.occtoo.com/v1/image-conversions/jobs/{jobId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/image-conversions/jobs/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "0193a5c4-7e1f-7b2a-9c3d-4e5f60718293",
"status": "Queued",
"position": 12,
"queuedAt": "2026-11-29T10:14:03.512417+00:00",
"result": null,
"error": null
}Authorizations
kindeOAuthbearerAuthapiKey
Response
The job.
A queued conversion of an uploaded original.
Was this page helpful?