Authentication#
Send your API key as Authorization: Bearer <key>. The X-API-Key header works too, and Authorization wins when both are present. Any valid key works: no ability is needed.
Path parameters#
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The conversion's id, as returned when it was submitted. min length 1 |
Responses#
200 OK#
Content type text/event-stream. The first event is always the current state, so a client that connects after the work is done still learns the outcome. Then come the events it missed after Last-Event-ID, then live ones. When the conversion has ended the server closes the stream. A conversion that is not yours is a 404.
Every event is named progress. Its data is one JSON object:
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | yes | The event's place in the trail. Send the last one you saw as Last-Event-ID to resume. |
conversion_id | string | yes | The conversion. |
status | string | yes | pending, running, finished, error or cancelled. |
progress | integer | yes | 0 to 100. |
phase | string | yes | What it is doing now. |
message | string | yes | Client-safe text. Never a path or an engine argument. |
error_type | string | no | Only on a failure: a code from the conversion error codes. |
at | string | yes | When the event happened, as a date-time. |
401 Unauthorized#
Content type application/problem+json. Schema: Problem.
404 Not Found#
Content type application/problem+json. No such conversion, or it is not yours. Schema: Problem.
curl -X GET "http://localhost:3000/api/v1/conversions/CONVERSION_ID/events" \
-H "Authorization: Bearer $VUKEM_TOOLS_API_KEY"import os
import requests
response = requests.get(
"http://localhost:3000/api/v1/conversions/CONVERSION_ID/events",
headers={"Authorization": f"Bearer {os.environ['VUKEM_TOOLS_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.status_code, len(response.content))const response = await fetch("http://localhost:3000/api/v1/conversions/CONVERSION_ID/events", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VUKEM_TOOLS_API_KEY}`,
},
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
console.log(response.status, (await response.arrayBuffer()).byteLength);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
url := "http://localhost:3000/api/v1/conversions/CONVERSION_ID/events"
req, err := http.NewRequest("GET", url, nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("VUKEM_TOOLS_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status, len(out), "bytes")
}<?php
$ch = curl_init("http://localhost:3000/api/v1/conversions/CONVERSION_ID/events");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("VUKEM_TOOLS_API_KEY"),
],
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", strlen($response), PHP_EOL;import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Example {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("http://localhost:3000/api/v1/conversions/CONVERSION_ID/events"))
.header("Authorization", "Bearer " + System.getenv("VUKEM_TOOLS_API_KEY"))
.GET()
.build();
HttpResponse<byte[]> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofByteArray());
System.out.println(response.statusCode() + " " + response.body().length + " bytes");
}
}using System;
using System.Net.Http;
using System.Net.Http.Headers;
using var client = new HttpClient();
using var request = new HttpRequestMessage(
HttpMethod.Get, "http://localhost:3000/api/v1/conversions/CONVERSION_ID/events");
request.Headers.Authorization = new AuthenticationHeaderValue(
"Bearer", Environment.GetEnvironmentVariable("VUKEM_TOOLS_API_KEY"));
using var response = await client.SendAsync(request);
var bytes = await response.Content.ReadAsByteArrayAsync();
Console.WriteLine($"{(int)response.StatusCode} {bytes.Length} bytes");require "net/http"
require "uri"
uri = URI("http://localhost:3000/api/v1/conversions/CONVERSION_ID/events")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer #{ENV.fetch('VUKEM_TOOLS_API_KEY')}"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
http.request(request)
end
puts "#{response.code} #{response.body.to_s.bytesize} bytes"Response examples
event: progress
data: {"id":0,"conversion_id":"01JQ8Z5X0K7M3N9P2R4T6V8W0Y","status":"running","progress":0,"phase":"","message":"","at":"2026-01-02T15:04:05Z"}The examples are built from the schemas, so every value is a placeholder of its type. The tables above hold the fields that carry the real values.

