Skip to content

API reference

The API’s base URL is https://api.formatjet.com/v1. These pages are generated from the OpenAPI 3.1 document, which you can also feed to a client generator.

Send an API key from the dashboard as a bearer token:

Authorization: Bearer fj_live_…

Each key has scopes: convert makes uploads and jobs, read reads jobs, usage and the account, webhooks manages webhook endpoints. Each endpoint’s page says which it needs. The catalog (/v1/formats, /v1/operations, /v1/pricing) needs no key. Keep keys on your servers: anyone holding one can spend your credits.

  • JSON in and out, with snake_case fields and times in ISO 8601 (UTC).
  • IDs carry a prefix: job_, up_, file_, wh_, evt_, dlv_.
  • Errors are problem documents with a stable code.
  • Request IDs: every answer has a FormatJet-Request-Id header.
  • Lists page with limit and cursor: pass the answer’s next_cursor back as cursor; it’s null on the last page.
  • Retries: POST requests take an Idempotency-Key (limits and retries).
  • Rate limits are stated in RateLimit-Policy on every keyed answer.
  • Costs: answers about a job carry FormatJet-Credits and FormatJet-Engine.
  • Versions: /v1 only changes in ways that don’t break clients: new endpoints, fields and error codes may appear, so ignore what you don’t know.

Catalog

Formats, conversions, options and credit weights. No key needed.

Account

The account, limits and usage behind an API key.

Jobs

Convert files: in one request (POST /v1/convert), or as a job you upload to, wait on and download from.

Recipes

Saved steps and an output name, run on files with recipe on a job. Pro and the API plans.

Webhooks

Endpoints that receive signed events when jobs end.