# Cofferdock > One API key, 25 tools for automations: HTML to image or PDF, screenshots, QR codes, charts, PDF editing, image processing, validation and data helpers. All tools share one API key and one monthly pool of credits (1 successful call = 1 credit, failed calls are free; free plan: 50 credits a month, no card). Authenticate with the `x-api-key` header. File inputs go as base64 in JSON or as raw bytes; results come back as JSON with base64, as the file itself (`output=binary`) or as a temporary download link valid 15 minutes (`output=url`, best for AI assistants). ## Docs - [OpenAPI 3.1 specification](https://cofferdock.com/openapi.json): machine-readable description of every endpoint, parameter and response - [Interactive API reference](https://cofferdock.com/api): every tool with its options and a "try it" form - [Getting started with n8n, Make and Zapier](https://cofferdock.com/html-to-image): step-by-step recipes for no-code tools - [Postman collection](https://cofferdock.com/postman.json): import it into Postman to try every call ## Tools - [Check your plan and remaining credits](https://cofferdock.com/api#getStatus): `GET https://api.cofferdock.com/status`. Returns your plan, the monthly limit, how many credits you have used and how many are left. Free: does not cost a credit. Useful at the start of a workflow to decide whether to continue. - [HTML to image (PNG, JPEG or WebP)](https://cofferdock.com/api#htmlToImage): `POST https://api.cofferdock.com/capture`. Renders HTML (with inline CSS; fonts and images from the internet are allowed, JavaScript is not executed) into an image. Ideal for social cards, certificates, tickets, OG images or any design you can describe in HTML. Send either html, or template + data to use a ready-made design. - [HTML to PDF](https://cofferdock.com/api#htmlToPdf): `POST https://api.cofferdock.com/pdf`. Renders HTML into a PDF (invoices, reports, tickets, contracts). Same rendering engine as /capture: inline CSS, web fonts and images allowed, no JavaScript. Send either html, or template + data (the "invoice" template works well as a PDF). - [Screenshot of a public web page](https://cofferdock.com/api#screenshotUrl): `POST https://api.cofferdock.com/screenshot`. Loads a public URL in a real browser (JavaScript enabled) and takes a screenshot. Private networks and internal addresses are blocked. - [QR code (PNG or SVG)](https://cofferdock.com/api#generateQr): `POST https://api.cofferdock.com/qr`. Turns a link or any text (max 1500 characters) into a QR code. - [Data to chart image (bar, line, pie, doughnut, radar)](https://cofferdock.com/api#dataToChart): `POST https://api.cofferdock.com/chart`. Turns labels and numeric series into a chart image, without a browser. Pie and doughnut accept 1 series only. - [Resize, convert or compress an image](https://cofferdock.com/api#transformImage): `POST https://api.cofferdock.com/images`. Resizes (with a fit mode), converts between JPEG/PNG/WebP/AVIF and/or compresses ONE image. Provide at least one of width, height, format or quality. Input formats: PNG, JPEG, WebP, AVIF, GIF, TIFF. - [Merge 2 to 20 PDFs into one](https://cofferdock.com/api#mergePdfs): `POST https://api.cofferdock.com/pdf-merge`. Joins several PDFs in the order given. One credit regardless of how many files. - [Split a PDF by page ranges](https://cofferdock.com/api#splitPdf): `POST https://api.cofferdock.com/pdf-split`. Creates one PDF per range. Ranges use 1-indexed pages: "1-3,5,7-9" gives three files. For one file per page, list every page: "1,2,3". One credit regardless of how many files come out. - [Rotate pages of a PDF](https://cofferdock.com/api#rotatePdf): `POST https://api.cofferdock.com/pdf-rotate`. Rotates all pages, or only the ones in `pages`, by 90, 180 or 270 degrees (added to the rotation each page already has). - [Add a text or image watermark to a PDF](https://cofferdock.com/api#watermarkPdf): `POST https://api.cofferdock.com/pdf-watermark`. Overlays a text (max 200 characters) OR a PNG/JPEG image on every page (or on `pages`). Image watermarks need the JSON body. - [Fill a PDF form (or list its fields)](https://cofferdock.com/api#fillPdfForm): `POST https://api.cofferdock.com/pdf-fill-form`. Fills the fields of an existing PDF form (AcroForm) with the values in `data`. Without `data` (or with inspect=true) it returns the list of fields instead, so you know their names. Set flatten=true to make the result non-editable. - [Extract the text of a PDF](https://cofferdock.com/api#extractPdfText): `POST https://api.cofferdock.com/pdf-extract-text`. Returns the text of a PDF (not scanned images: there is no OCR). Set pages=true to also get the text page by page. - [Add page numbers to a PDF](https://cofferdock.com/api#addPdfPageNumbers): `POST https://api.cofferdock.com/pdf-page-numbers`. Stamps a page number on every page (or on `pages`). The `format` text must contain {n}; it can also use {total}. - [Read or write PDF metadata](https://cofferdock.com/api#pdfMetadata): `POST https://api.cofferdock.com/pdf-metadata`. With no metadata fields it READS title, author, subject, keywords, creator, producer and dates. With any field given it WRITES them and returns the PDF. - [Images to PDF (one image per page)](https://cofferdock.com/api#imagesToPdf): `POST https://api.cofferdock.com/pdf-from-images`. Turns 1 to 20 PNG/JPEG images into a PDF. page_size "auto" makes each page the size of its image; A4, A3, A5, Letter, Legal or Tabloid fit the image inside. - [PDF pages to PNG images](https://cofferdock.com/api#pdfToImages): `POST https://api.cofferdock.com/pdf-to-images`. Renders each page (or the ones in `pages`) as a PNG. `scale` 1 is 72 dpi; 2 is 144 dpi. - [Add a password to a PDF](https://cofferdock.com/api#protectPdf): `POST https://api.cofferdock.com/pdf-protect`. Encrypts the PDF so it asks for the password when opened. The PDF must not be protected already. - [Remove the password of a PDF (you must know it)](https://cofferdock.com/api#unprotectPdf): `POST https://api.cofferdock.com/pdf-unprotect`. Returns an unencrypted copy of a password-protected PDF. It does not crack passwords: the current one is required. - [Create a zip from up to 50 files](https://cofferdock.com/api#createZip): `POST https://api.cofferdock.com/create-zip`. Packs files of any type into a .zip. Names can include folders ("reports/january.pdf"). Default output is the zip binary. - [Validate an email address](https://cofferdock.com/api#validateEmail): `POST https://api.cofferdock.com/validate-email`. Checks the format and, by default, that the domain has a real mail server (MX record). An invalid email is still a successful call (valid=false). - [Validate and format a phone number](https://cofferdock.com/api#validatePhone): `POST https://api.cofferdock.com/validate-phone`. Validates an international phone number and returns it in E.164 and international formats, with its country and type (mobile, fixed line...). Give `country` (2-letter code) for numbers without the + prefix. - [Validate an IBAN](https://cofferdock.com/api#validateIban): `POST https://api.cofferdock.com/validate-iban`. Checks the IBAN checksum (ISO 7064) and returns the country and the formatted IBAN. - [Generate UUIDs (v4)](https://cofferdock.com/api#generateUuid): `POST https://api.cofferdock.com/generate-uuid`. Returns 1 to 100 random UUIDs. One credit per call regardless of count. - [Text to URL slug](https://cofferdock.com/api#slugify): `POST https://api.cofferdock.com/slugify`. Lowercases, removes accents and keeps only letters and digits separated by `separator`. "Año Nuevo 2026!" becomes "ano-nuevo-2026". - [Hash a text or a file (md5, sha1, sha256, sha512)](https://cofferdock.com/api#hash): `POST https://api.cofferdock.com/hash`. Returns the hash of a text (JSON) or of a file (raw bytes, max 25 MB). Useful for checksums and deduplication. ## Optional - [Pricing](https://cofferdock.com/#pricing): Free 50, Pro 500, Business 2,000, Scale 10,000 credits a month - [Terms](https://cofferdock.com/terms) and [Privacy](https://cofferdock.com/privacy): files sent to the tools are processed in memory and never stored - Support: hello@cofferdock.com