Skip to content

List conversions

GET /v1/operations

List the conversions and tools the API runs, with options and credits.

No key needed.

Request

Terminal window
curl "https://api.formatjet.com/v1/operations"

Query parameters

FieldTypeDescription
fromstringInput format
tostringOutput format
operationstringWhat it does, such as convert, extract_tables or extract_markdown

Responses

200 OK

Conversions

FieldTypeDescription
dataobject[]
data[].slugstring
data[].namestringWhat it’s called on the website, such as Word to PDF
data[].kind"pair" | "tool"
data[].operationstring
data[].fromstring[]
data[].tostring
data[].filesobjectHow many files one job takes. More than one are joined into one output: send them as inputs.
data[].files.minnumber
data[].files.maxnumber
data[].creditsobject
data[].credits.amountnumber
data[].credits.unitstring
data[].enginesobject[]
data[].engines[].tierstring
data[].engines[].enginesobject[]
data[].engines[].engines[].idstring
data[].engines[].engines[].namestring
data[].options_schemaobject (map)
data[].addonbooleanAn add-on, such as background removal: it runs on Pro, the API plans and Enterprise, and with test keys. Other plans get forbidden.
Example
{
"data": [
{
"slug": "word-to-pdf",
"name": "Word to PDF",
"kind": "pair",
"operation": "convert",
"from": [
"docx",
"doc"
],
"to": "pdf",
"files": {
"min": 1,
"max": 1
},
"credits": {
"amount": 2,
"unit": "file"
},
"engines": [
{
"tier": "container",
"engines": [
{
"id": "office-pool",
"name": "Office engine (LibreOffice)"
}
]
}
],
"options_schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"pdfa": {
"default": "off",
"description": "Save as PDF/A for archiving: off, 2b or 3b",
"type": "string",
"enum": [
"off",
"2b",
"3b"
]
}
},
"additionalProperties": false
},
"addon": false
}
]
}

Errors

Problem documents (application/problem+json); see Errors.

StatusCodeWhen
400invalid_requestfrom or to isn’t a format we know, or operation one we run.