Skip to content

API: Conversions

Follow a conversion as it runs

A Server-Sent Events stream, so a client that can hold a connection open does not have to poll. It is in the route table but not in /openapi.json, because a stream has no response body a schema can describe.

GET/api/v1/conversions/{id}/events

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#

NameTypeRequiredDescription
idstringyesThe 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:

NameTypeRequiredDescription
idintegeryesThe event's place in the trail. Send the last one you saw as Last-Event-ID to resume.
conversion_idstringyesThe conversion.
statusstringyespending, running, finished, error or cancelled.
progressintegeryes0 to 100.
phasestringyesWhat it is doing now.
messagestringyesClient-safe text. Never a path or an engine argument.
error_typestringnoOnly on a failure: a code from the conversion error codes.
atstringyesWhen 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"

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.