Conversions

Get a conversion

The current state of one job.

GET/v1/conversions/{id
}

Check at most once a second, or use a webhook instead.

Authentication

An API key with the conversions:read scope, or the signed-in website.

Path parameters

idstringrequired

The job ID.

Response

200 OK

idstring

The job ID.

statestring

queued, processing, succeeded, failed or cancelled. See all states.

channelstring

Where it came from: api, web or desktop.

input_filenamestring

The uploaded file name.

input_bytesinteger

The size of the upload.

optionsobject

The options in use, with defaults filled in.

page_countinteger or null

Pages in the PDF, once it has been opened.

pages_selectedinteger or null

Pages this job converts.

pages_succeededinteger

Pages converted so far.

pages_failedinteger

Pages that failed.

credits_reservedinteger

Credits held while the job runs.

credits_consumedinteger

Credits charged. Only converted pages are charged.

errorobject or null

What went wrong. See job errors.

cancel_requestedboolean

Whether a cancel was requested.

results_expire_atstring or null

When the images will be deleted.

created_atstring

When the job was created.

started_atstring or null

When a worker started it.

finished_atstring or null

When it ended.

Errors

StatusCodeWhat to do
401unauthenticatedThe API key is missing, invalid, expired or revoked.
403insufficient_scopeUse a key with the scope shown above.
404not_foundCheck the ID. It may belong to another workspace.