{"openapi":"3.1.0","info":{"title":"FormatJet API","version":"1","description":"Convert documents, images, data and PDFs on FormatJet’s servers. Send an API key from the dashboard as a bearer token: `fj_test_…` keys run real conversions for free within test limits, `fj_live_…` keys spend credits. Errors are RFC 9457 problem documents with a stable `code`.","termsOfService":"https://formatjet.com/legal/terms","contact":{"name":"FormatJet support","url":"https://formatjet.com/contact"}},"servers":[{"url":"https://api.formatjet.com"}],"tags":[{"name":"Catalog","description":"Formats, conversions, options and credit weights. No key needed."},{"name":"Account","description":"The account, limits and usage behind an API key."},{"name":"Jobs","description":"Convert files: in one request (`POST /v1/convert`), or as a job you upload to, wait on and download from."},{"name":"Recipes","description":"Saved steps and an output name, run on files with `recipe` on a job. Pro and the API plans."},{"name":"Webhooks","description":"Endpoints that receive signed events when jobs end."}],"externalDocs":{"description":"Guides and quickstart","url":"https://formatjet.com/docs"},"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","description":"An API key from the dashboard: `fj_live_…`, or `fj_test_…` for test mode."}},"schemas":{"Format":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"family":{"type":"string"},"extensions":{"type":"array","items":{"type":"string"}},"mime_types":{"type":"array","items":{"type":"string"}},"description":{"type":"string"}},"required":["id","label","name","family","extensions","mime_types","description"]},"Operation":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string","description":"What it’s called on the website, such as Word to PDF"},"kind":{"type":"string","enum":["pair","tool"]},"operation":{"type":"string"},"from":{"type":"array","items":{"type":"string"}},"to":{"type":"string"},"files":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}},"required":["min","max"],"description":"How many files one job takes. More than one are joined into one output: send them as `inputs`."},"credits":{"type":"object","properties":{"amount":{"type":"number"},"unit":{"type":"string"}},"required":["amount","unit"]},"engines":{"type":"array","items":{"type":"object","properties":{"tier":{"type":"string"},"engines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["tier","engines"]}},"options_schema":{"type":"object","additionalProperties":{}},"addon":{"type":"boolean","description":"An add-on, such as background removal: it runs on Pro, the API plans and Enterprise, and with test keys. Other plans get `forbidden`."}},"required":["slug","name","kind","operation","from","to","files","credits","engines","options_schema","addon"]},"Problem":{"type":"object","properties":{"type":{"type":"string","description":"This code’s page in the docs: `https://formatjet.com/docs/errors/<code>`"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","enum":["invalid_request","unsupported_conversion","unsupported_document","file_too_large","too_long","corrupt_file","password_protected","import_failed","unauthorized","forbidden","not_found","insufficient_credits","rate_limited","idempotency_conflict","engine_timeout","engine_failed","internal_error"],"description":"Stable across versions: branch on it, not on `title` or `detail`"},"detail":{"type":"string","description":"What happened, for people to read"},"request_id":{"type":"string","description":"Also in `FormatJet-Request-Id`"},"errors":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"]},"description":"`invalid_request` from validation: each field that failed"},"job_id":{"type":"string","description":"`POST /v1/convert` only: the job whose conversion failed"},"max_file_bytes":{"type":"number","description":"`file_too_large` for base64 inputs: the most they take"}},"required":["type","title","status","code","request_id"],"description":"An RFC 9457 problem document with FormatJet’s `code` and `request_id`.","example":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}},"Pricing":{"type":"object","properties":{"currency":{"type":"string"},"browser_credits":{"type":"number"},"credit_weights":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"amount":{"type":"number"},"unit":{"type":"string"}},"required":["id","label","amount","unit"]}},"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"audience":{"type":"string"},"price_monthly_cents":{"type":["number","null"]},"price_yearly_per_month_cents":{"type":["number","null"]},"monthly_credits":{"type":["number","null"]},"overage":{"anyOf":[{"type":"string"},{"type":"object","properties":{"per_1000_cents":{"type":"number"},"cap_credits":{"type":"number"}},"required":["per_1000_cents","cap_credits"]}]}},"required":["id","name","audience","price_monthly_cents","price_yearly_per_month_cents","monthly_credits","overage"]}},"credit_packs":{"type":"array","items":{"type":"object","properties":{"credits":{"type":"number"},"price_cents":{"type":"number"},"valid_months":{"type":"number"}},"required":["credits","price_cents","valid_months"]}}},"required":["currency","browser_credits","credit_weights","plans","credit_packs"],"example":{"currency":"usd","browser_credits":0,"credit_weights":[{"id":"image","label":"Images","amount":1,"unit":"file"},{"id":"pdf_tool","label":"PDF tools","amount":1,"unit":"file"},{"id":"audio","label":"Audio","amount":1,"unit":"file"},{"id":"data","label":"Data","amount":1,"unit":"file"},{"id":"markdown","label":"Markdown extraction","amount":1,"unit":"file"},{"id":"office_to_pdf","label":"Office → PDF","amount":2,"unit":"file"},{"id":"office_to_office","label":"Office ↔ Office","amount":2,"unit":"file"},{"id":"ebook","label":"Ebooks","amount":2,"unit":"file"},{"id":"web_to_pdf","label":"Web page → PDF","amount":2,"unit":"file"},{"id":"web_to_image","label":"Web page → image","amount":2,"unit":"file"},{"id":"pdf_to_office","label":"PDF → Word, Excel or PowerPoint","amount":4,"unit":"file"},{"id":"ocr","label":"OCR","amount":1,"unit":"page"},{"id":"tables","label":"Table extraction","amount":1,"unit":"page"},{"id":"video_copy","label":"Video without re-encoding","amount":1,"unit":"file"},{"id":"video_hd","label":"Video up to 1080p","amount":4,"unit":"output_minute"},{"id":"video_uhd","label":"Video above 1080p","amount":8,"unit":"output_minute"},{"id":"transcription","label":"Transcription","amount":1,"unit":"audio_minute"},{"id":"background_removal","label":"Background removal","amount":1,"unit":"file"},{"id":"invoice","label":"Invoice extraction","amount":5,"unit":"page"}],"plans":[{"id":"free","name":"Free","audience":"both","price_monthly_cents":0,"price_yearly_per_month_cents":null,"monthly_credits":300,"overage":"none"},{"id":"pro","name":"Pro","audience":"web","price_monthly_cents":1000,"price_yearly_per_month_cents":700,"monthly_credits":2000,"overage":"packs"},{"id":"api_starter","name":"API Starter","audience":"api","price_monthly_cents":1900,"price_yearly_per_month_cents":null,"monthly_credits":3000,"overage":{"per_1000_cents":700,"cap_credits":3000}},{"id":"api_growth","name":"API Growth","audience":"api","price_monthly_cents":7900,"price_yearly_per_month_cents":null,"monthly_credits":20000,"overage":{"per_1000_cents":450,"cap_credits":20000}},{"id":"api_scale","name":"API Scale","audience":"api","price_monthly_cents":29900,"price_yearly_per_month_cents":null,"monthly_credits":100000,"overage":{"per_1000_cents":325,"cap_credits":100000}},{"id":"enterprise","name":"Enterprise","audience":"both","price_monthly_cents":null,"price_yearly_per_month_cents":null,"monthly_credits":null,"overage":"custom"}],"credit_packs":[{"credits":1000,"price_cents":1200,"valid_months":12},{"credits":10000,"price_cents":9000,"valid_months":12}]}},"Usage":{"type":"object","properties":{"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","example":"2026-10-23"},"jobs":{"type":"number"},"succeeded":{"type":"number"},"credits":{"type":"number"},"bytes":{"type":"number","description":"Input bytes"}},"required":["day","jobs","succeeded","credits","bytes"]}},"totals":{"type":"object","properties":{"jobs":{"type":"number"},"succeeded":{"type":"number"},"credits":{"type":"number"},"bytes":{"type":"number","description":"Input bytes"}},"required":["jobs","succeeded","credits","bytes"]}},"required":["days","totals"],"example":{"days":[{"day":"2026-10-18","jobs":0,"succeeded":0,"credits":0,"bytes":0},{"day":"2026-10-19","jobs":3,"succeeded":3,"credits":6,"bytes":160442},{"day":"2026-10-20","jobs":12,"succeeded":12,"credits":24,"bytes":1208331},{"day":"2026-10-21","jobs":0,"succeeded":0,"credits":0,"bytes":0},{"day":"2026-10-22","jobs":7,"succeeded":7,"credits":14,"bytes":501220},{"day":"2026-10-23","jobs":9,"succeeded":9,"credits":18,"bytes":744018},{"day":"2026-10-24","jobs":2,"succeeded":2,"credits":4,"bytes":96426}],"totals":{"jobs":33,"succeeded":33,"credits":66,"bytes":2710437}}},"Account":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string","example":"fj_live_7Gk2"},"mode":{"type":"string","enum":["live","test"]},"scopes":{"type":"array","items":{"type":"string","enum":["convert","read","webhooks"]}}},"required":["id","name","prefix","mode","scopes"]},"credits":{"type":"object","properties":{"available":{"type":"number","description":"Credits a new job can use"},"held":{"type":"number","description":"Credits held by jobs that are running"},"monthly":{"type":["object","null"],"properties":{"granted":{"type":"number"},"remaining":{"type":"number"},"resets_at":{"type":"string"}},"required":["granted","remaining","resets_at"],"description":"This month’s plan credits, if the plan grants them"}},"required":["available","held","monthly"]},"limits":{"type":"object","properties":{"max_file_bytes":{"type":"number"},"concurrent_jobs":{"type":"number"},"requests_per_second":{"type":["number","null"]},"jobs_per_day":{"type":["number","null"],"description":"Test keys only: free jobs a day; live jobs spend credits"},"jobs_today":{"type":["number","null"]}},"required":["max_file_bytes","concurrent_jobs","requests_per_second","jobs_per_day","jobs_today"]}},"required":["organization","plan","key","credits","limits"],"example":{"organization":{"id":"org_01JB0Y6S7T8V9W0X1Y2Z3A4B5C","name":"Acme"},"plan":{"id":"free","name":"Free"},"key":{"id":"key_01JBW2N4P6Q8R0S2T4V6W8X0Y2","name":"Staging server","prefix":"fj_test_7Gk2","mode":"test","scopes":["convert","read","webhooks"]},"credits":{"available":300,"held":0,"monthly":{"granted":300,"remaining":300,"resets_at":"2026-11-01T00:00:00.000Z"}},"limits":{"max_file_bytes":1048576,"concurrent_jobs":2,"requests_per_second":2,"jobs_per_day":100,"jobs_today":4}}},"Upload":{"type":"object","properties":{"id":{"type":"string","description":"Name it in a job’s `input` once the file is PUT"},"url":{"type":"string","description":"PUT the file’s bytes here"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Send these exactly"},"expires_at":{"type":"string","description":"The URL works until then"},"max_bytes":{"type":"number","description":"The largest file the key may upload"}},"required":["id","url","method","headers","expires_at","max_bytes"],"example":{"id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","url":"https://<account>.r2.cloudflarestorage.com/formatjet-files-us/in/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D/file_01JBXA3PZK4M6N8P0Q2R4S6T8V?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…","method":"PUT","headers":{"Content-Type":"application/octet-stream"},"expires_at":"2026-10-24T10:15:00.000Z","max_bytes":104857600}},"UploadRequest":{"type":"object","properties":{"size":{"type":"integer","exclusiveMinimum":0,"maximum":5368709120,"description":"Bytes"},"filename":{"type":"string","maxLength":255,"description":"The file’s name, used to name the output. Never logged."}},"required":["size"],"additionalProperties":false,"example":{"size":48213,"filename":"report.docx"}},"Job":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["created","awaiting_upload","queued","processing","completed","failed","canceled"],"description":"`awaiting_upload` while a URL input is being fetched"},"mode":{"type":"string","enum":["live","test"]},"conversion":{"type":"string"},"progress":{"type":"number"},"steps":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string","enum":["convert"]},"conversion":{"type":"string"},"from":{"type":["string","null"],"enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt",null]},"to":{"type":["string","null"],"enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt",null]},"options":{"type":"object","additionalProperties":{}},"status":{"type":"string","enum":["created","awaiting_upload","queued","processing","completed","failed","canceled"]},"credits":{"type":["number","null"],"description":"What the step costs if the job succeeds; null once the job’s details have expired"},"units":{"type":["number","null"],"description":"The pages or minutes the step counted (1 for a step priced per file); null until measured"},"engine":{"type":["string","null"]},"engine_version":{"type":["string","null"]}},"required":["op","conversion","from","to","options","status","credits","units","engine","engine_version"]},"description":"Every step in order: each converts what the step before made, and the last makes the output"},"input":{"type":"object","properties":{"upload_id":{"type":"string"},"format":{"type":["string","null"],"enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt",null]},"bytes":{"type":["number","null"]},"filename":{"type":["string","null"]}},"required":["upload_id","format","bytes","filename"],"description":"The file, or the first of `inputs`"},"inputs":{"type":"array","items":{"type":"object","properties":{"upload_id":{"type":"string"},"format":{"type":["string","null"],"enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt",null]},"bytes":{"type":["number","null"]},"filename":{"type":["string","null"]}},"required":["upload_id","format","bytes","filename"]},"description":"Every input in order, `input` first: more than one when the job joins files. Empty once the job’s details have expired."},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"filename":{"type":["string","null"]},"bytes":{"type":"number"},"mime":{"type":"string"},"url":{"type":["string","null"],"description":"Null once the file is deleted"},"expires_at":{"type":["string","null"]},"deleted_at":{"type":["string","null"],"description":"When the file was deleted from storage; null until then"}},"required":["id","filename","bytes","mime","url","expires_at","deleted_at"]}},"estimate":{"type":"object","properties":{"credits":{"type":"number","description":"What the job costs if it succeeds. A conversion priced per page or minute counts one unit until the file is measured, then what its pages or minutes cost"},"unit":{"type":"string","enum":["file","page","output_minute","audio_minute"],"description":"What the conversion is priced by"},"units":{"type":["number","null"],"description":"Units counted: 1 for a conversion priced per file; the pages to read or started minutes once the file is measured, null until then"}},"required":["credits","unit","units"],"description":"What the job costs, and what that counts (P3-2)"},"credits":{"type":"number","description":"Credits charged: only for a job that succeeded"},"engine":{"type":["string","null"]},"engine_version":{"type":["string","null"]},"error":{"type":["object","null"],"properties":{"code":{"type":"string"},"detail":{"type":"string"}},"required":["code","detail"]},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"created_at":{"type":"string"},"finished_at":{"type":["string","null"]},"links":{"type":"object","properties":{"self":{"type":"string"},"events":{"type":"string"}},"required":["self","events"]}},"required":["id","status","mode","conversion","progress","steps","input","inputs","outputs","estimate","credits","engine","engine_version","error","metadata","created_at","finished_at","links"],"example":{"id":"job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","status":"completed","mode":"live","conversion":"word-to-pdf","progress":100,"steps":[{"op":"convert","conversion":"word-to-pdf","from":"docx","to":"pdf","options":{},"status":"completed","credits":2,"units":1,"engine":"office","engine_version":"libreoffice-25.8+runner-7"}],"input":{"upload_id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","format":"docx","bytes":48213,"filename":"report.docx"},"inputs":[{"upload_id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","format":"docx","bytes":48213,"filename":"report.docx"}],"outputs":[{"id":"file_01JBXA3R2N5P7Q9S1T3V5W7X9Z","filename":"report.pdf","bytes":61874,"mime":"application/pdf","url":"https://<account>.r2.cloudflarestorage.com/formatjet-files-us/out/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D/file_01JBXA3R2N5P7Q9S1T3V5W7X9Z?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…","expires_at":"2026-10-25T10:00:06.000Z","deleted_at":null}],"estimate":{"credits":2,"unit":"file","units":1},"credits":2,"engine":"office","engine_version":"libreoffice-25.8+runner-7","error":null,"metadata":{},"created_at":"2026-10-24T10:00:02.000Z","finished_at":"2026-10-24T10:00:06.000Z","links":{"self":"https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","events":"https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D/events"}}},"JobRequest":{"type":"object","properties":{"input":{"anyOf":[{"type":"object","properties":{"upload_id":{"type":"string","maxLength":40}},"required":["upload_id"],"additionalProperties":false},{"type":"object","properties":{"base64":{"type":"string","maxLength":13981020},"filename":{"type":"string","maxLength":255}},"required":["base64"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"description":"An http or https URL we fetch the file from; never logged. Private addresses, and video and social platforms, are refused."},"filename":{"type":"string","maxLength":255}},"required":["url"],"additionalProperties":false}],"description":"The file. Send this or `inputs`."},"inputs":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"upload_id":{"type":"string","maxLength":40}},"required":["upload_id"],"additionalProperties":false},{"type":"object","properties":{"base64":{"type":"string","maxLength":13981020},"filename":{"type":"string","maxLength":255}},"required":["base64"],"additionalProperties":false}]},"minItems":2,"maxItems":20,"description":"Two to 20 files joined into one output, in order (merge-pdf, image-to-pdf): uploads or base64, up to 10 MB of base64 in all. Send this or `input`."},"steps":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string","enum":["convert"]},"conversion":{"type":"string","maxLength":100,"description":"A conversion’s slug from `GET /v1/operations`, such as `word-to-pdf`"},"from":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"What the file is; detected from its bytes when left out"},"to":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"The format to make, when `conversion` is left out"},"options":{"type":"object","additionalProperties":{},"description":"The conversion’s options (`options_schema` in `GET /v1/operations`)"}},"required":["op"],"additionalProperties":false},"minItems":1,"maxItems":5,"description":"Up to 5 steps, each converting what the step before made: the job’s output is the last step’s. Send this or `recipe`."},"recipe":{"type":"string","maxLength":40,"description":"A recipe’s ID (`rcp_…`, `POST /v1/recipes`): its steps and output name. Send this or `steps`."},"output":{"type":"object","properties":{"ttl":{"type":"integer","exclusiveMinimum":0,"description":"Seconds the output is kept after completion (default 86400)"},"filename":{"type":"string","maxLength":255}},"additionalProperties":false},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":500},"description":"Up to 20 string values, 2 KB in all; returned with the job"},"webhook":{"type":"string","maxLength":2048,"description":"A URL that gets this job’s events besides your webhook endpoints, signed with your organization’s job-webhook secret (dashboard, Webhooks). HTTPS on a public host name."}},"additionalProperties":false},"Estimate":{"type":"object","properties":{"conversion":{"type":"string"},"from":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"]},"to":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"]},"files":{"type":"number"},"credits":{"type":"number","description":"What a job with this key would be charged if it succeeded"},"credit_weight":{"type":"object","properties":{"amount":{"type":"number"},"unit":{"type":"string"}},"required":["amount","unit"],"description":"The conversion’s price in credits, from GET /v1/pricing"},"units":{"type":"number","description":"What `credits` counts: 1 for a conversion priced per file; for one priced per page or minute, the `pages` or started minutes of `seconds` given, or 1 without them, which is what a job holds until its file is measured"},"max_units":{"type":["number","null"],"description":"The most pages or minutes one job takes with this key, past which it ends as `too_long`; null for a conversion priced per file"},"available_credits":{"type":["number","null"],"description":"Credits a new job can use now; null for test keys"},"max_file_bytes":{"type":"number","description":"The largest file (or total) a job with this key takes for it"}},"required":["conversion","from","to","files","credits","credit_weight","units","max_units","available_credits","max_file_bytes"],"example":{"conversion":"word-to-pdf","from":"docx","to":"pdf","files":1,"credits":2,"credit_weight":{"amount":2,"unit":"file"},"units":1,"max_units":null,"available_credits":298,"max_file_bytes":104857600}},"EstimateRequest":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string","enum":["convert"]},"conversion":{"type":"string","maxLength":100,"description":"A conversion’s slug from `GET /v1/operations`, such as `word-to-pdf`"},"from":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"What the file is; detected from its bytes when left out"},"to":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"The format to make, when `conversion` is left out"},"options":{"type":"object","additionalProperties":{},"description":"The conversion’s options (`options_schema` in `GET /v1/operations`)"}},"required":["op"],"additionalProperties":false},"description":"One step in v1"},"files":{"type":"integer","minimum":1,"maximum":20,"description":"How many files the job joins (merge-pdf, image-to-pdf); 1 by default"},"bytes":{"type":"integer","exclusiveMinimum":0,"description":"The file’s size, or the files’ total, to check against the limits"},"pages":{"type":"integer","exclusiveMinimum":0,"maximum":100000,"description":"For a conversion priced per page: the PDF’s pages. A job counts only the pages without text, so it may cost less. Ignored for other conversions"},"seconds":{"type":"number","exclusiveMinimum":0,"maximum":604800,"description":"For a conversion priced per minute: the file’s length in seconds; a started minute of the output counts as one (a GIF counts only the clip it makes). Ignored for other conversions"}},"required":["steps"],"additionalProperties":false,"example":{"steps":[{"op":"convert","from":"docx","to":"pdf"}],"bytes":48213}},"JobListItem":{"allOf":[{"$ref":"#/components/schemas/Job"},{"type":"object","properties":{"error_code":{"type":["string","null"],"description":"As in a summary: `error.code`"}},"required":["error_code"]}],"example":{"id":"job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","status":"completed","mode":"live","conversion":"word-to-pdf","progress":100,"steps":[{"op":"convert","conversion":"word-to-pdf","from":"docx","to":"pdf","options":{},"status":"completed","credits":2,"units":1,"engine":"office","engine_version":"libreoffice-25.8+runner-7"}],"input":{"upload_id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","format":"docx","bytes":48213,"filename":"report.docx"},"inputs":[{"upload_id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","format":"docx","bytes":48213,"filename":"report.docx"}],"outputs":[{"id":"file_01JBXA3R2N5P7Q9S1T3V5W7X9Z","filename":"report.pdf","bytes":61874,"mime":"application/pdf","url":"https://<account>.r2.cloudflarestorage.com/formatjet-files-us/out/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D/file_01JBXA3R2N5P7Q9S1T3V5W7X9Z?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…","expires_at":"2026-10-25T10:00:06.000Z","deleted_at":null}],"estimate":{"credits":2,"unit":"file","units":1},"credits":2,"engine":"office","engine_version":"libreoffice-25.8+runner-7","error":null,"metadata":{},"created_at":"2026-10-24T10:00:02.000Z","finished_at":"2026-10-24T10:00:06.000Z","links":{"self":"https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","events":"https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D/events"},"error_code":null}},"JobSummary":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["created","awaiting_upload","queued","processing","completed","failed","canceled"]},"mode":{"type":"string","enum":["live","test"]},"conversion":{"type":"string"},"credits":{"type":"number"},"engine":{"type":["string","null"]},"engine_version":{"type":["string","null"]},"error_code":{"type":["string","null"]},"created_at":{"type":"string"},"finished_at":{"type":["string","null"]}},"required":["id","status","mode","conversion","credits","engine","engine_version","error_code","created_at","finished_at"]},"DeletionReceiptResponse":{"type":"object","properties":{"receipt":{"type":"object","additionalProperties":{},"description":"Which files were deleted and when, signed with Ed25519: check `signature` with the public key whose `kid` matches at `GET /v1/receipts/keys`"}},"required":["receipt"],"example":{"receipt":{"type":"formatjet.deletion_receipt","version":1,"job_id":"job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","files":[{"id":"file_01JBXA3PZK4M6N8P0Q2R4S6T8V","role":"input","deleted_at":"2026-10-24T10:00:06.000Z"},{"id":"file_01JBXA3R2N5P7Q9S1T3V5W7X9Z","role":"output","deleted_at":"2026-10-24T10:03:41.000Z"}],"issued_at":"2026-10-24T10:03:41.000Z","signature":{"alg":"Ed25519","key_id":"rk_2026_10","value":"k3M9…"}}}},"Recipe":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string","enum":["convert"]},"conversion":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"options":{"type":"object","additionalProperties":{}}},"required":["op"]}},"output_name":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","name","steps","output_name","created_at","updated_at"],"example":{"id":"rcp_01JBXA7M2P4R6T8V0X2Z4B6D8F","name":"Word documents to Markdown","steps":[{"op":"convert","conversion":"word-to-pdf"},{"op":"convert","conversion":"pdf-to-markdown"}],"output_name":"{name}-text","created_at":"2026-11-16T09:00:00.000Z","updated_at":"2026-11-16T09:00:00.000Z"}},"RecipeRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"steps":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string","enum":["convert"]},"conversion":{"type":"string","maxLength":100,"description":"A conversion’s slug from `GET /v1/operations`, such as `word-to-pdf`"},"from":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"What the file is; detected from its bytes when left out"},"to":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"The format to make, when `conversion` is left out"},"options":{"type":"object","additionalProperties":{},"description":"The conversion’s options (`options_schema` in `GET /v1/operations`)"}},"required":["op"],"additionalProperties":false},"minItems":1,"maxItems":5,"description":"Up to 5 steps, as `POST /v1/jobs` takes them. The first names its conversion, or `to` with `from`; no step may hold a password."},"output_name":{"type":["string","null"],"maxLength":100,"description":"The output’s name without its extension: text and `{name}`, the input’s name, such as `{name}-small`. Null for the input’s name."}},"required":["name","steps"],"additionalProperties":false,"example":{"name":"Word documents to Markdown","steps":[{"op":"convert","conversion":"word-to-pdf"},{"op":"convert","conversion":"pdf-to-markdown"}],"output_name":"{name}-text"}},"RecipeUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"steps":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string","enum":["convert"]},"conversion":{"type":"string","maxLength":100,"description":"A conversion’s slug from `GET /v1/operations`, such as `word-to-pdf`"},"from":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"What the file is; detected from its bytes when left out"},"to":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"The format to make, when `conversion` is left out"},"options":{"type":"object","additionalProperties":{},"description":"The conversion’s options (`options_schema` in `GET /v1/operations`)"}},"required":["op"],"additionalProperties":false},"minItems":1,"maxItems":5,"description":"Up to 5 steps, as `POST /v1/jobs` takes them. The first names its conversion, or `to` with `from`; no step may hold a password."},"output_name":{"type":["string","null"],"maxLength":100,"description":"The output’s name without its extension: text and `{name}`, the input’s name, such as `{name}-small`. Null for the input’s name."}},"additionalProperties":false,"example":{"name":"Page to small PDF"}},"WebhookEndpointWithSecret":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","properties":{"secret":{"type":"string","description":"Verifies the `FormatJet-Signature` header. Shown now only: keep it safe."}},"required":["secret"]}],"example":{"id":"wh_01JBXA6K8M0P2R4S6T8V0W2X4Y","url":"https://example.com/formatjet/events","description":"Production receiver","events":["job.completed","job.failed","job.canceled"],"mode":"live","enabled":true,"disabled_reason":null,"failing_since":null,"previous_secret_expires_at":null,"client":null,"conversions":null,"metadata":null,"created_at":"2026-10-24T09:12:40.000Z","updated_at":"2026-10-24T09:12:40.000Z","secret":"whsec_3fK8mQ2xV7nR1tY5wZ9bC4dG6hJ0kL2p"}},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":["string","null"]},"events":{"type":"array","items":{"type":"string","enum":["job.completed","job.failed","job.canceled"]}},"mode":{"type":"string","enum":["live","test"]},"enabled":{"type":"boolean"},"disabled_reason":{"type":["string","null"],"enum":["failing","user",null],"description":"`failing`: turned off after 24 hours of failed deliveries"},"failing_since":{"type":["string","null"]},"previous_secret_expires_at":{"type":["string","null"],"description":"After a rotation, the old secret signs beside the new one until then"},"client":{"type":["string","null"],"enum":["zapier","make","n8n",null],"description":"The integration whose trigger made it: `FormatJet-Client` named it, and the URL is that platform's own webhook address. Counted against their 100 endpoints per mode instead of the 10. Null for any other endpoint"},"conversions":{"type":["array","null"],"items":{"type":"string"},"description":"Only jobs that run one of these conversions are sent; null for every job"},"metadata":{"type":["object","null"],"additionalProperties":{"type":"string"},"description":"Only jobs whose `metadata` has every one of these values are sent; null for every job"},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","url","description","events","mode","enabled","disabled_reason","failing_since","previous_secret_expires_at","client","conversions","metadata","created_at","updated_at"],"example":{"id":"wh_01JBXA6K8M0P2R4S6T8V0W2X4Y","url":"https://example.com/formatjet/events","description":"Production receiver","events":["job.completed","job.failed","job.canceled"],"mode":"live","enabled":true,"disabled_reason":null,"failing_since":null,"previous_secret_expires_at":null,"client":null,"conversions":null,"metadata":null,"created_at":"2026-10-24T09:12:40.000Z","updated_at":"2026-10-24T09:12:40.000Z"}},"WebhookEndpointRequest":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"events":{"type":"array","items":{"type":"string","enum":["job.completed","job.failed","job.canceled"]},"minItems":1,"maxItems":3,"description":"Events to send; every event when left out"},"description":{"type":"string","maxLength":200},"conversions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":50,"description":"Only jobs with a step that runs one of these conversions (slugs from `GET /v1/operations`), up to 50; every job when left out"},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":500},"description":"Only jobs whose `metadata` has every one of these values, up to 5 keys; every job when left out"}},"required":["url"],"additionalProperties":false,"example":{"url":"https://example.com/formatjet/events","events":["job.completed","job.failed"],"description":"Production receiver"}},"JobWebhookSecret":{"type":"object","properties":{"secret":{"type":"string","description":"Keep it with your other secrets"},"previous_secret_expires_at":{"type":["string","null"]}},"required":["secret","previous_secret_expires_at"],"example":{"secret":"whsec_8nD2qL5vX1rT7yK3wB9cF4gH6jM0pS2z","previous_secret_expires_at":null}},"WebhookEndpointUpdate":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"events":{"type":"array","items":{"type":"string","enum":["job.completed","job.failed","job.canceled"]},"minItems":1,"maxItems":3},"description":{"type":["string","null"],"maxLength":200},"enabled":{"type":"boolean"},"conversions":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":50,"description":"Only jobs that run one of these conversions; null sends every job again"},"metadata":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":500},"description":"Only jobs whose `metadata` has every one of these values; null sends every job again"}},"additionalProperties":false,"example":{"enabled":false}},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string"},"endpoint_id":{"type":["string","null"]},"event_id":{"type":"string"},"event_type":{"type":"string","enum":["job.completed","job.failed","job.canceled"]},"job_id":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"attempt":{"type":"number"},"replay":{"type":"boolean"},"succeeded":{"type":"boolean"},"status_code":{"type":["number","null"]},"error":{"type":["string","null"],"description":"`timeout`, `unreachable`, `refused_url`, `redirect` or `http_status`"},"duration_ms":{"type":"number"},"next_attempt_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","endpoint_id","event_id","event_type","job_id","mode","attempt","replay","succeeded","status_code","error","duration_ms","next_attempt_at","created_at"],"example":{"id":"dlv_01JBXA4D2F4G6H8J0K2M4N6P8Q","endpoint_id":"wh_01JBXA6K8M0P2R4S6T8V0W2X4Y","event_id":"evt_01JBXA4C7E9G1H3J5K7M9N1P3Q","event_type":"job.completed","job_id":"job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","mode":"live","attempt":1,"replay":false,"succeeded":true,"status_code":200,"error":null,"duration_ms":182,"next_attempt_at":null,"created_at":"2026-10-24T10:00:06.000Z"}}},"parameters":{}},"paths":{"/v1/formats":{"get":{"operationId":"listFormats","tags":["Catalog"],"summary":"List supported formats","responses":{"200":{"description":"Supported formats","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Format"}}},"required":["data"],"example":{"data":[{"id":"pdf","label":"PDF","name":"PDF document","family":"pdf","extensions":["pdf"],"mime_types":["application/pdf"],"description":"PDF is the standard format for documents that should look the same everywhere. It can hold text, images and vector graphics across many pages."},{"id":"docx","label":"DOCX","name":"Word document","family":"document","extensions":["docx"],"mime_types":["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],"description":"DOCX is the document format of Microsoft Word since 2007. It keeps text, styles, tables and images, but how a page looks depends on the app and fonts that open it."}]}}}}}}}},"/v1/operations":{"get":{"operationId":"listOperations","tags":["Catalog"],"summary":"List the conversions and tools the API runs, with options and credits","parameters":[{"schema":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"Input format"},"required":false,"description":"Input format","name":"from","in":"query"},{"schema":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"],"description":"Output format"},"required":false,"description":"Output format","name":"to","in":"query"},{"schema":{"type":"string","enum":["convert","compress","merge","split","rotate","resize","delete_pages","extract_pages","extract_markdown","unlock","pdfa","remove_background","transcribe","ocr","extract_tables","extract_invoice","copy"],"description":"What it does, such as `convert`, `extract_tables` or `extract_markdown`"},"required":false,"description":"What it does, such as `convert`, `extract_tables` or `extract_markdown`","name":"operation","in":"query"}],"responses":{"200":{"description":"Conversions","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Operation"}}},"required":["data"],"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}]}}}}},"400":{"description":"`from` or `to` isn’t a format we know, or `operation` one we run.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"`from` or `to` isn’t a format we know, or `operation` one we run.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/pricing":{"get":{"operationId":"getPricing","tags":["Catalog"],"summary":"Credit weights, plans and credit packs","responses":{"200":{"description":"Pricing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pricing"}}}}}}},"/v1/usage":{"get":{"operationId":"getUsage","tags":["Account"],"summary":"Jobs and credits by day","description":"The organization’s jobs (website, API and MCP, live and test) and the credits they used, per UTC day, oldest first, today included. Exact from job records for the last 30 days, then from daily totals.","security":[{"ApiKey":["read"]}],"parameters":[{"schema":{"type":"integer","minimum":7,"maximum":90,"default":30,"description":"How many days, 7 to 90"},"required":false,"description":"How many days, 7 to 90","name":"days","in":"query"}],"responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"400":{"description":"`days` outside 7 to 90.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"`days` outside 7 to 90.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/account":{"get":{"operationId":"getAccount","tags":["Account"],"summary":"The account and limits behind your API key","security":[{"ApiKey":["read"]}],"responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/uploads":{"post":{"operationId":"createUpload","tags":["Jobs"],"summary":"Make an upload: a presigned URL to PUT a file to","description":"For files you send from where your code runs. PUT the bytes to `url` with `headers`, then name the upload’s `id` in a job’s `input` (or `inputs`). An upload makes one job; one that isn’t used is deleted 60 minutes after it arrives.","security":[{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}}},"responses":{"201":{"description":"The upload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"400":{"description":"The body failed validation.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The body failed validation.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `convert` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `convert` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Larger than the plan (or test mode) allows.","content":{"application/problem+json":{"examples":{"file_too_large":{"summary":"Larger than the plan (or test mode) allows.","value":{"type":"https://formatjet.com/docs/errors/file_too_large","title":"File too large","status":413,"code":"file_too_large","detail":"Files up to 100 MB can be converted on your plan.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/jobs":{"post":{"operationId":"createJob","tags":["Jobs"],"summary":"Make a job: convert an upload, a base64 file or a file at a URL","description":"The job starts at once and is answered while it runs: wait for it with `GET /v1/jobs/{id}`, its event stream, or a webhook. Credits are held now and charged only if it succeeds.","security":[{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"examples":{"upload":{"summary":"Convert an upload","value":{"input":{"upload_id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D"},"steps":[{"op":"convert","to":"pdf"}]}},"base64":{"summary":"Convert a base64 file, naming the conversion","value":{"input":{"base64":"UEsDBBQABgAIAAAAIQ…","filename":"report.docx"},"steps":[{"op":"convert","conversion":"word-to-pdf"}],"metadata":{"invoice":"INV-1042"}}},"url":{"summary":"Import a file from a URL","value":{"input":{"url":"https://formatjet.com/docs/samples/report.pdf"},"steps":[{"op":"convert","to":"md"}],"webhook":"https://example.com/formatjet/events"}},"chain":{"summary":"Chain steps: Word to PDF, then Markdown","value":{"input":{"upload_id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D"},"steps":[{"op":"convert","conversion":"word-to-pdf"},{"op":"convert","conversion":"pdf-to-markdown"}]}},"recipe":{"summary":"Run a recipe","value":{"input":{"upload_id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D"},"recipe":"rcp_01JBXA7M2P4R6T8V0X2Z4B6D8F"}},"join":{"summary":"Join files into one PDF","value":{"inputs":[{"upload_id":"up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D"},{"upload_id":"up_01JBXA3S8V0W2X4Y6Z8A0B2C4D"}],"steps":[{"op":"convert","conversion":"merge-pdf"}]}}},"schema":{"$ref":"#/components/schemas/JobRequest"}}}},"responses":{"201":{"description":"The job, running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"The body failed validation, or an upload isn’t ready.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The body failed validation, or an upload isn’t ready.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"Not enough credits for the job.","content":{"application/problem+json":{"examples":{"insufficient_credits":{"summary":"Not enough credits for the job.","value":{"type":"https://formatjet.com/docs/errors/insufficient_credits","title":"Insufficient credits","status":402,"code":"insufficient_credits","detail":"This job needs 2 credits and 0 are left.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `convert` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `convert` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such upload.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No such upload.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Larger than the plan, test mode or the engine takes.","content":{"application/problem+json":{"examples":{"file_too_large":{"summary":"Larger than the plan, test mode or the engine takes.","value":{"type":"https://formatjet.com/docs/errors/file_too_large","title":"File too large","status":413,"code":"file_too_large","detail":"Files up to 100 MB can be converted on your plan.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A conversion we can’t run for this file.","content":{"application/problem+json":{"examples":{"unsupported_conversion":{"summary":"A conversion we can’t run for this file.","value":{"type":"https://formatjet.com/docs/errors/unsupported_conversion","title":"Unsupported conversion","status":422,"code":"unsupported_conversion","detail":"This file is a PNG; word-to-pdf takes DOCX and DOC.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Over the rate limit, or as many jobs running as the plan allows: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"Over the rate limit, or as many jobs running as the plan allows: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"operationId":"listJobs","tags":["Jobs"],"summary":"List jobs (the last 30 days)","description":"Jobs made with keys of this key’s mode (API and MCP), newest first. Pass `next_cursor` back as `cursor` for the next page; it’s null on the last. `status` keeps finished jobs that ended that way. `view=job` gives each job as `GET /v1/jobs/{id}` and webhook events show it (with `error_code` too), up to 10 a page and 250 outputs in all (a page ends early, with `next_cursor`, before a job that would pass them): what an automation platform’s trigger shows as samples.","security":[{"ApiKey":["read"]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"description":"Jobs per page, 1 to 100 (25 by default); with `view=job`, 1 to 10 (10 by default)"},"required":false,"description":"Jobs per page, 1 to 100 (25 by default); with `view=job`, 1 to 10 (10 by default)","name":"limit","in":"query"},{"schema":{"type":"string","maxLength":80,"description":"The last page’s `next_cursor`"},"required":false,"description":"The last page’s `next_cursor`","name":"cursor","in":"query"},{"schema":{"type":"string","maxLength":100,"description":"Only finished jobs that ended this way, comma-separated: `completed`, `failed`, `canceled`. A running job is listed as it was when it started, so it can't be found by its state now: read it with `GET /v1/jobs/{id}`","example":"completed,failed"},"required":false,"description":"Only finished jobs that ended this way, comma-separated: `completed`, `failed`, `canceled`. A running job is listed as it was when it started, so it can't be found by its state now: read it with `GET /v1/jobs/{id}`","name":"status","in":"query"},{"schema":{"type":"string","enum":["summary","job"],"default":"summary","description":"`summary` (the default), or `job`: each job as `GET /v1/jobs/{id}` shows it, up to 10 a page and 250 outputs in all"},"required":false,"description":"`summary` (the default), or `job`: each job as `GET /v1/jobs/{id}` shows it, up to 10 a page and 250 outputs in all","name":"view","in":"query"}],"responses":{"200":{"description":"Jobs, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JobListItem"},{"$ref":"#/components/schemas/JobSummary"}]}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"example":{"data":[{"id":"job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","status":"completed","mode":"live","conversion":"word-to-pdf","credits":2,"engine":"office","engine_version":"libreoffice-25.8+runner-7","error_code":null,"created_at":"2026-10-24T10:00:02.000Z","finished_at":"2026-10-24T10:00:06.000Z"}],"next_cursor":"1761300002000.job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D"}}}}},"400":{"description":"`limit` outside 1 to 100 (10 with `view=job`), or a `status` that isn’t one a job ends in.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"`limit` outside 1 to 100 (10 with `view=job`), or a `status` that isn’t one a job ends in.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/estimate":{"post":{"operationId":"estimateJob","tags":["Jobs"],"summary":"What a job would cost, before you send the file","description":"Name the conversion, or the format to make (`to`) with what the file is (`from`). The answer is what a job with this key would be charged: test keys’ jobs are free. `bytes` checks a size against the plan and the engine; `files` is for conversions that join files.","security":[{"ApiKey":["read"]},{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateRequest"}}}},"responses":{"200":{"description":"The estimate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Estimate"}}}},"400":{"description":"The body failed validation.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The body failed validation.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` or `convert` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` or `convert` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Larger than the plan, test mode or the engine takes. More `pages` or `seconds` than one job takes with this key.","content":{"application/problem+json":{"examples":{"file_too_large":{"summary":"Larger than the plan, test mode or the engine takes.","value":{"type":"https://formatjet.com/docs/errors/file_too_large","title":"File too large","status":413,"code":"file_too_large","detail":"Files up to 100 MB can be converted on your plan.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}},"too_long":{"summary":"More `pages` or `seconds` than one job takes with this key.","value":{"type":"https://formatjet.com/docs/errors/too_long","title":"Too long","status":413,"code":"too_long","detail":"This file has 24 pages to read, and a job takes up to 20 on this plan.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A conversion we can’t run.","content":{"application/problem+json":{"examples":{"unsupported_conversion":{"summary":"A conversion we can’t run.","value":{"type":"https://formatjet.com/docs/errors/unsupported_conversion","title":"Unsupported conversion","status":422,"code":"unsupported_conversion","detail":"This file is a PNG; word-to-pdf takes DOCX and DOC.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/convert":{"post":{"operationId":"convert","tags":["Jobs"],"summary":"Convert one file and get the result in the response (up to 25 MB)","description":"Send the file as `multipart/form-data` (a `file` part) or as the raw body; for a conversion that joins files (merge-pdf, image-to-pdf), send a `file` part for each, in order, 25 MB in all. Or send its address in a `url` part instead, and we fetch it as `POST /v1/jobs` does. The same pipeline as a job: if it hasn’t finished within 30 seconds (or `wait`), the answer is `202` with the job, which carries on. `response=job`, or `Accept: application/json` without `response`, answers with the job and its download URL instead of the file; `response=file` answers with the file whatever `Accept` says. A conversion that makes several files (Split PDF, a PDF’s pages as images, a workbook’s sheets as CSV) always answers with the job, whose `outputs` list them in order.","security":[{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","maxLength":100,"example":"word-to-pdf"},"required":false,"name":"conversion","in":"query"},{"schema":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"]},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","enum":["jpg","jfif","png","webp","avif","heic","gif","bmp","tiff","ico","svg","pdf","docx","doc","odt","xlsx","xls","ods","pptx","ppt","odp","mp3","wav","m4a","aac","ogg","opus","flac","mp4","mov","mkv","webm","avi","wmv","csv","tsv","json","xml","yaml","txt","html","md","epub","mobi","azw3","srt","vtt"]},"required":false,"name":"to","in":"query"},{"schema":{"type":"string","maxLength":40,"description":"A recipe’s ID (`rcp_…`) instead of `conversion` or `to`: its steps and output name run on the file"},"required":false,"description":"A recipe’s ID (`rcp_…`) instead of `conversion` or `to`: its steps and output name run on the file","name":"recipe","in":"query"},{"schema":{"type":"string","maxLength":4096,"description":"The step’s options, as a JSON object. A password is refused here: send it in a multipart `options` part"},"required":false,"description":"The step’s options, as a JSON object. A password is refused here: send it in a multipart `options` part","name":"options","in":"query"},{"schema":{"type":"string","maxLength":255,"description":"The file’s name, for a raw body. Never logged."},"required":false,"description":"The file’s name, for a raw body. Never logged.","name":"filename","in":"query"},{"schema":{"type":"string","maxLength":255},"required":false,"name":"output_filename","in":"query"},{"schema":{"type":"integer","description":"Seconds the output is kept after completion (default 86400)"},"required":false,"description":"Seconds the output is kept after completion (default 86400)","name":"ttl","in":"query"},{"schema":{"type":"string","enum":["file","job"],"description":"What a finished conversion answers with: `file`, or `job` (the job, with download URLs). Left out, `Accept: application/json` asks for the job"},"required":false,"description":"What a finished conversion answers with: `file`, or `job` (the job, with download URLs). Left out, `Accept: application/json` asks for the job","name":"response","in":"query"},{"schema":{"type":"integer","minimum":0,"maximum":30,"description":"Seconds to wait for the conversion before answering `202` with the job, 0 to 30 (the default). Less suits a caller whose own time is short, such as an automation platform's step"},"required":false,"description":"Seconds to wait for the conversion before answering `202` with the job, 0 to 30 (the default). Less suits a caller whose own time is short, such as an automation platform's step","name":"wait","in":"query"},{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The file; one part a file for a conversion that joins files"},"url":{"type":"string","maxLength":2048,"description":"Instead of `file`: an http or https URL we fetch the file from, held to your plan’s file size rather than 25 MB. Never logged; private addresses, and video and social platforms, are refused"},"options":{"type":"string","description":"The step’s options as a JSON object, instead of the `options` query parameter. A password (unlock-pdf) goes only here, never in the URL"},"webhook":{"type":"string","maxLength":2048,"description":"A URL that gets the job’s event when it ends, as `POST /v1/jobs`’ `webhook` does: signed with your organization’s job-webhook secret (`GET /v1/webhooks/job-secret`)"},"metadata":{"type":"string","maxLength":4096,"description":"A JSON object of up to 20 string values, 2 KB in all, kept with the job and sent in its events: webhook endpoints can be limited to jobs with given values"}}}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"The converted file (`Content-Disposition` names it), or the job with `response=job` (or `Accept: application/json`) or when the conversion made several files","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"202":{"description":"Still converting after 30 s (or `wait`): the job, which carries on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"The query or body is wrong: no conversion named, an empty file, both a `file` and a `url`.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The query or body is wrong: no conversion named, an empty file, both a `file` and a `url`.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"Not enough credits for the job.","content":{"application/problem+json":{"examples":{"insufficient_credits":{"summary":"Not enough credits for the job.","value":{"type":"https://formatjet.com/docs/errors/insufficient_credits","title":"Insufficient credits","status":402,"code":"insufficient_credits","detail":"This job needs 2 credits and 0 are left.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `convert` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `convert` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Larger than 25 MB, or than the plan, test mode or the engine takes. More pages or minutes than one job takes on the plan, counted once the file arrives (no charge).","content":{"application/problem+json":{"examples":{"file_too_large":{"summary":"Larger than 25 MB, or than the plan, test mode or the engine takes.","value":{"type":"https://formatjet.com/docs/errors/file_too_large","title":"File too large","status":413,"code":"file_too_large","detail":"Files up to 100 MB can be converted on your plan.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}},"too_long":{"summary":"More pages or minutes than one job takes on the plan, counted once the file arrives (no charge).","value":{"type":"https://formatjet.com/docs/errors/too_long","title":"Too long","status":413,"code":"too_long","detail":"This file has 24 pages to read, and a job takes up to 20 on this plan.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A conversion we can’t run for this file. A kind of document the conversion doesn’t take yet, such as a layout it isn’t open to (no charge). A file the engine couldn’t read. A file protected with a password.","content":{"application/problem+json":{"examples":{"unsupported_conversion":{"summary":"A conversion we can’t run for this file.","value":{"type":"https://formatjet.com/docs/errors/unsupported_conversion","title":"Unsupported conversion","status":422,"code":"unsupported_conversion","detail":"This file is a PNG; word-to-pdf takes DOCX and DOC.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}},"unsupported_document":{"summary":"A kind of document the conversion doesn’t take yet, such as a layout it isn’t open to (no charge).","value":{"type":"https://formatjet.com/docs/errors/unsupported_document","title":"Unsupported document","status":422,"code":"unsupported_document","detail":"We can’t convert this PDF yet: its fonts don’t say which letters some of its text uses.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}},"corrupt_file":{"summary":"A file the engine couldn’t read.","value":{"type":"https://formatjet.com/docs/errors/corrupt_file","title":"Corrupt file","status":422,"code":"corrupt_file","detail":"The file couldn’t be read. It may be damaged or not what its name says.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}},"password_protected":{"summary":"A file protected with a password.","value":{"type":"https://formatjet.com/docs/errors/password_protected","title":"Password protected","status":422,"code":"password_protected","detail":"The file is protected with a password.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Over the rate limit, or as many jobs running as the plan allows: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"Over the rate limit, or as many jobs running as the plan allows: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"The conversion failed (no charge).","content":{"application/problem+json":{"examples":{"engine_failed":{"summary":"The conversion failed (no charge).","value":{"type":"https://formatjet.com/docs/errors/engine_failed","title":"Engine failed","status":500,"code":"engine_failed","detail":"The conversion failed.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"504":{"description":"The engine took too long (no charge).","content":{"application/problem+json":{"examples":{"engine_timeout":{"summary":"The engine took too long (no charge).","value":{"type":"https://formatjet.com/docs/errors/engine_timeout","title":"Engine timeout","status":504,"code":"engine_timeout","detail":"The conversion took too long.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/jobs/{id}":{"get":{"operationId":"getJob","tags":["Jobs"],"summary":"A job: status, outputs and their download URLs","description":"Download URLs work until `expires_at`. After the job’s files are deleted, it’s still listed for 30 days without inputs or outputs. With `wait`, a job still running is answered when it ends or after that many seconds (up to 30), whichever is first: a loop of these needs no pause of its own.","security":[{"ApiKey":["read"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"},{"schema":{"type":"integer","minimum":0,"maximum":30,"default":0,"description":"Seconds to wait for a running job to end before answering, 0 (the default) to 30"},"required":false,"description":"Seconds to wait for a running job to end before answering, 0 (the default) to 30","name":"wait","in":"query"}],"responses":{"200":{"description":"The job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such job of this key’s mode, or its files are gone.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No such job of this key’s mode, or its files are gone.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deleteJob","tags":["Jobs"],"summary":"Delete a job’s files now; returns a signed deletion receipt","description":"Deletes the job’s inputs and outputs from storage at once, instead of when its retention ends. A running job is canceled first.","security":[{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionReceiptResponse"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `convert` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `convert` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such job of this key’s mode, or its files are gone.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No such job of this key’s mode, or its files are gone.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/jobs/{id}/events":{"get":{"operationId":"streamJobEvents","tags":["Jobs"],"summary":"Server-sent events: the job each time it changes, until it finishes","description":"Each event carries the job as `GET /v1/jobs/{id}` shows it: `job.updated` while it runs, then one of `job.completed`, `job.failed` or `job.canceled`, after which the stream ends. A comment line keeps the connection open every 15 seconds. Event IDs let a reconnect send `Last-Event-ID` to skip what it has seen; a stream ends after 15 minutes.","security":[{"ApiKey":["read"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"An event stream","content":{"text/event-stream":{"example":"id: 1761300006000\nevent: job.completed\ndata: {\"id\":\"job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D\",\"status\":\"completed\",…}\n\n","schema":{"type":"string"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such job of this key’s mode, or its files are gone.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No such job of this key’s mode, or its files are gone.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/jobs/{id}/cancel":{"post":{"operationId":"cancelJob","tags":["Jobs"],"summary":"Cancel a job that hasn’t finished; nothing is charged","description":"A job that has already ended is answered as it is.","security":[{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"responses":{"200":{"description":"The job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"An `Idempotency-Key` that isn’t 1 to 255 printable characters.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"An `Idempotency-Key` that isn’t 1 to 255 printable characters.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `convert` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `convert` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such job of this key’s mode, or its files are gone.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No such job of this key’s mode, or its files are gone.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/jobs/{id}/outputs/{n}":{"get":{"operationId":"downloadJobOutput","tags":["Jobs"],"summary":"Download an output: a redirect to its URL","description":"For a client that adds your key to every request, as automation platforms do: this route takes the key, and answers `302` to the output’s download URL, which needs none (HTTP clients drop `Authorization` when a redirect leads to another host). `n` is the output’s place in `outputs`, from 0.","security":[{"ApiKey":["read"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","pattern":"^\\d{1,3}$","description":"The output’s place in `outputs`, from 0","example":"0"},"required":true,"description":"The output’s place in `outputs`, from 0","name":"n","in":"path"}],"responses":{"302":{"description":"To the file","headers":{"Location":{"schema":{"type":"string","description":"The output’s download URL"},"required":true,"description":"The output’s download URL"}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such job of this key’s mode, no output at that place yet, or the file is gone.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No such job of this key’s mode, no output at that place yet, or the file is gone.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/recipes":{"post":{"operationId":"createRecipe","tags":["Recipes"],"summary":"Save a recipe: steps and an output name to run on files","description":"Run it with `recipe` on `POST /v1/jobs`, or `?recipe=` on `POST /v1/convert`. Its steps are checked now as a job's are, and again for each file. At most 100 recipes an organization. Recipes need Pro or an API plan. Test keys have them on any plan.","security":[{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRequest"}}}},"responses":{"201":{"description":"The recipe","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipe"}}}},"400":{"description":"The body failed validation, or a step can’t follow the one before.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The body failed validation, or a step can’t follow the one before.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Recipes need Pro or an API plan. Test keys have them on any plan. Or the organization has 100 recipes already.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"Recipes need Pro or an API plan. Test keys have them on any plan. Or the organization has 100 recipes already.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A step names a conversion we can’t run.","content":{"application/problem+json":{"examples":{"unsupported_conversion":{"summary":"A step names a conversion we can’t run.","value":{"type":"https://formatjet.com/docs/errors/unsupported_conversion","title":"Unsupported conversion","status":422,"code":"unsupported_conversion","detail":"This file is a PNG; word-to-pdf takes DOCX and DOC.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"operationId":"listRecipes","tags":["Recipes"],"summary":"The organization’s recipes, newest first","description":"Pass `next_cursor` back as `cursor` for the next page; it’s null on the last.","security":[{"ApiKey":["read"]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":80,"description":"The last page’s `next_cursor`"},"required":false,"description":"The last page’s `next_cursor`","name":"cursor","in":"query"}],"responses":{"200":{"description":"Recipes, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Recipe"}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"example":{"data":[{"id":"rcp_01JBXA7M2P4R6T8V0X2Z4B6D8F","name":"Word documents to Markdown","steps":[{"op":"convert","conversion":"word-to-pdf"},{"op":"convert","conversion":"pdf-to-markdown"}],"output_name":"{name}-text","created_at":"2026-11-16T09:00:00.000Z","updated_at":"2026-11-16T09:00:00.000Z"}],"next_cursor":null}}}}},"400":{"description":"`limit` outside 1 to 100, or a `cursor` we didn’t give.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"`limit` outside 1 to 100, or a `cursor` we didn’t give.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/recipes/{id}":{"get":{"operationId":"getRecipe","tags":["Recipes"],"summary":"A recipe","security":[{"ApiKey":["read"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The recipe","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipe"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `read` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `read` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No recipe of this organization has this ID.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No recipe of this organization has this ID.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updateRecipe","tags":["Recipes"],"summary":"Change a recipe’s name, steps or output name","description":"Jobs already running keep the steps they started with.","security":[{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeUpdate"}}}},"responses":{"200":{"description":"The recipe","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipe"}}}},"400":{"description":"The body failed validation, or a step can’t follow the one before.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The body failed validation, or a step can’t follow the one before.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `convert` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `convert` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No recipe of this organization has this ID.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No recipe of this organization has this ID.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A step names a conversion we can’t run.","content":{"application/problem+json":{"examples":{"unsupported_conversion":{"summary":"A step names a conversion we can’t run.","value":{"type":"https://formatjet.com/docs/errors/unsupported_conversion","title":"Unsupported conversion","status":422,"code":"unsupported_conversion","detail":"This file is a PNG; word-to-pdf takes DOCX and DOC.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deleteRecipe","tags":["Recipes"],"summary":"Delete a recipe","description":"Jobs already running keep the steps they started with.","security":[{"ApiKey":["convert"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Deleted"},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `convert` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `convert` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No recipe of this organization has this ID.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No recipe of this organization has this ID.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks":{"post":{"operationId":"createWebhook","tags":["Webhooks"],"summary":"Add a webhook endpoint","description":"HTTPS only, on a public host name. Events of jobs made with keys of this key's mode are sent there, signed with the secret in the response (`FormatJet-Signature`); `conversions` and `metadata` limit it to some jobs. At most 10 endpoints per mode, and 100 more made by our Zapier, Make and n8n integrations (`FormatJet-Client`).","security":[{"ApiKey":["webhooks"]}],"parameters":[{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointRequest"}}}},"responses":{"201":{"description":"The endpoint and its secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"400":{"description":"The body failed validation, or the URL is one we don’t send to. Or a conversion we don’t know.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The body failed validation, or the URL is one we don’t send to. Or a conversion we don’t know.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, or the mode has 10 endpoints already (100 made by integrations).","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, or the mode has 10 endpoints already (100 made by integrations).","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"operationId":"listWebhooks","tags":["Webhooks"],"summary":"List webhook endpoints of the key’s mode","security":[{"ApiKey":["webhooks"]}],"responses":{"200":{"description":"Endpoints, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}},"required":["data"],"example":{"data":[{"id":"wh_01JBXA6K8M0P2R4S6T8V0W2X4Y","url":"https://example.com/formatjet/events","description":"Production receiver","events":["job.completed","job.failed","job.canceled"],"mode":"live","enabled":true,"disabled_reason":null,"failing_since":null,"previous_secret_expires_at":null,"client":null,"conversions":null,"metadata":null,"created_at":"2026-10-24T09:12:40.000Z","updated_at":"2026-10-24T09:12:40.000Z"}]}}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/job-secret":{"get":{"operationId":"getJobWebhookSecret","tags":["Webhooks"],"summary":"The secret that signs deliveries to jobs’ own `webhook` URLs","description":"One secret for the organization, live and test jobs alike, made the first time it’s asked for, so only a live key can read it. The dashboard’s Webhooks page shows and rotates it too; after a rotation, `previous_secret_expires_at` says until when the old one also signs.","security":[{"ApiKey":["webhooks"]}],"responses":{"200":{"description":"The secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobWebhookSecret"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, is a test key, or webhooks aren’t set up here yet.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, is a test key, or webhooks aren’t set up here yet.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/{id}":{"get":{"operationId":"getWebhook","tags":["Webhooks"],"summary":"Get a webhook endpoint","security":[{"ApiKey":["webhooks"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No webhook endpoint of this key’s mode has this ID.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No webhook endpoint of this key’s mode has this ID.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updateWebhook","tags":["Webhooks"],"summary":"Change a webhook endpoint, or turn it off and on","description":"Turning on an endpoint that was turned off after 24 hours of failures clears its failure. Events that ended while it was off aren’t sent; replay them from its deliveries.","security":[{"ApiKey":["webhooks"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdate"}}}},"responses":{"200":{"description":"The endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The body failed validation, or the URL is one we don’t send to. Or a conversion we don’t know.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The body failed validation, or the URL is one we don’t send to. Or a conversion we don’t know.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No webhook endpoint of this key’s mode has this ID.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No webhook endpoint of this key’s mode has this ID.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deleteWebhook","tags":["Webhooks"],"summary":"Delete a webhook endpoint and its deliveries","security":[{"ApiKey":["webhooks"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Deleted"},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No webhook endpoint of this key’s mode has this ID.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No webhook endpoint of this key’s mode has this ID.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/{id}/rotate-secret":{"post":{"operationId":"rotateWebhookSecret","tags":["Webhooks"],"summary":"Rotate an endpoint’s secret","description":"Deliveries are signed with both the new and the old secret for 24 hours (two `v1` values), so your receiver can switch without missing one.","security":[{"ApiKey":["webhooks"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"responses":{"200":{"description":"The endpoint and its new secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"400":{"description":"An `Idempotency-Key` that isn’t 1 to 255 printable characters.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"An `Idempotency-Key` that isn’t 1 to 255 printable characters.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No webhook endpoint of this key’s mode has this ID.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No webhook endpoint of this key’s mode has this ID.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","tags":["Webhooks"],"summary":"List an endpoint’s delivery attempts of the last 7 days","security":[{"ApiKey":["webhooks"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":60},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","maxLength":40},"required":false,"name":"event_id","in":"query"}],"responses":{"200":{"description":"Attempts, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"example":{"data":[{"id":"dlv_01JBXA4D2F4G6H8J0K2M4N6P8Q","endpoint_id":"wh_01JBXA6K8M0P2R4S6T8V0W2X4Y","event_id":"evt_01JBXA4C7E9G1H3J5K7M9N1P3Q","event_type":"job.completed","job_id":"job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D","mode":"live","attempt":1,"replay":false,"succeeded":true,"status_code":200,"error":null,"duration_ms":182,"next_attempt_at":null,"created_at":"2026-10-24T10:00:06.000Z"}],"next_cursor":null}}}}},"400":{"description":"A `cursor` that isn’t one we gave, or `limit` outside 1 to 100.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"A `cursor` that isn’t one we gave, or `limit` outside 1 to 100.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No webhook endpoint of this key’s mode has this ID.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No webhook endpoint of this key’s mode has this ID.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/{id}/replay":{"post":{"operationId":"replayWebhookEvent","tags":["Webhooks"],"summary":"Send an event to an endpoint again, now","description":"For an event the endpoint was sent in the last 7 days. One attempt, outside the retry schedule; the answer is its delivery. Works on a turned-off endpoint, to test it before turning it on.","security":[{"ApiKey":["webhooks"]}],"parameters":[{"schema":{"type":"string","maxLength":40},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409."},"required":false,"description":"Up to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (`Idempotent-Replayed: true`); the same key with a different request is a 409.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event_id":{"type":"string","maxLength":40}},"required":["event_id"],"additionalProperties":false,"example":{"event_id":"evt_01JBXA4C7E9G1H3J5K7M9N1P3Q"}}}}},"responses":{"200":{"description":"The attempt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"description":"The body failed validation.","content":{"application/problem+json":{"examples":{"invalid_request":{"summary":"The body failed validation.","value":{"type":"https://formatjet.com/docs/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"The request failed validation.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z","errors":[{"path":"steps.0.to","message":"Invalid option: expected one of \"pdf\"|\"docx\"|…"}]}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No API key, or one that’s unknown or revoked.","content":{"application/problem+json":{"examples":{"unauthorized":{"summary":"No API key, or one that’s unknown or revoked.","value":{"type":"https://formatjet.com/docs/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Send your API key as a bearer token: `Authorization: Bearer fj_live_…`.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks` scope, or the plan has no API.","content":{"application/problem+json":{"examples":{"forbidden":{"summary":"The key lacks the `webhooks` scope, or the plan has no API.","value":{"type":"https://formatjet.com/docs/errors/forbidden","title":"Forbidden","status":403,"code":"forbidden","detail":"This API key can’t convert files. Use a key with the `convert` scope.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such endpoint, or it wasn’t sent that event in the last 7 days.","content":{"application/problem+json":{"examples":{"not_found":{"summary":"No such endpoint, or it wasn’t sent that event in the last 7 days.","value":{"type":"https://formatjet.com/docs/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No such job.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"idempotency_conflict":{"summary":"The `Idempotency-Key` was used for a different request in the last 24 hours, or its first request is still running.","value":{"type":"https://formatjet.com/docs/errors/idempotency_conflict","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"This `Idempotency-Key` was used for a different request in the last 24 hours. Use a new key for a new request.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait before trying again","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"rate_limited":{"summary":"More requests than the plan allows in 10 seconds: wait `Retry-After` seconds.","value":{"type":"https://formatjet.com/docs/errors/rate_limited","title":"Rate limited","status":429,"code":"rate_limited","detail":"This key made more than 20 requests in 10 seconds, the Free plan’s limit. Try again in a few seconds.","request_id":"req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}}},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"webhooks":{}}