List conversions
GET /v1/operations
List the conversions and tools the API runs, with options and credits.
No key needed.
Request
curl "https://api.formatjet.com/v1/operations"Query parameters
| Field | Type | Description |
|---|---|---|
from | string | Input format |
to | string | Output format |
operation | string | What it does, such as convert, extract_tables or extract_markdown |
Responses
200 OK
Conversions
| Field | Type | Description |
|---|---|---|
data | object[] | |
data[].slug | string | |
data[].name | string | What it’s called on the website, such as Word to PDF |
data[].kind | "pair" | "tool" | |
data[].operation | string | |
data[].from | string[] | |
data[].to | string | |
data[].files | object | How many files one job takes. More than one are joined into one output: send them as inputs. |
data[].files.min | number | |
data[].files.max | number | |
data[].credits | object | |
data[].credits.amount | number | |
data[].credits.unit | string | |
data[].engines | object[] | |
data[].engines[].tier | string | |
data[].engines[].engines | object[] | |
data[].engines[].engines[].id | string | |
data[].engines[].engines[].name | string | |
data[].options_schema | object (map) | |
data[].addon | boolean | An add-on, such as background removal: it runs on Pro, the API plans and Enterprise, and with test keys. Other plans get forbidden. |
{ "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.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | from or to isn’t a format we know, or operation one we run. |