Developer API

Industrial-grade PDF manipulation, conversion, and OCR as a service. Build powerful document workflows in minutes.

Authentication

Scale securely with API keys. Include your key in the x-api-key header for every request.

x-api-key: sk_live_xxxxxxxxxxxxxxxxxxxxxxxx

The Credit Economy

Our API operates on a volumetric "Credit" system (CMD). Credits are deducted instantly from your centralized industrial balance.

  • Acquisition Rate:1 Credit = 2.50 SAR
  • Automation Surcharge:+20% per request
  • Volumetric Base (Page):1.0 CMD / page
  • Volumetric Base (Data):2.0 CMD / MB
  • Minimum Execution Floor:10 CMD (25 SAR)

Core Endpoints

Merge PDFs

Combine multiple PDF documents into a single high-fidelity file.

POST/api/v1/merge

Parameters

filesFormData[]At least 2 PDF files to merge.

Example Request

curl -X POST https://toolingtools.com/api/v1/merge \
  -H "x-api-key: YOUR_KEY" \
  -F "files=@doc1.pdf" \
  -F "files=@doc2.pdf"

Split PDF

Divide a PDF document at a specific page point.

POST/api/v1/split

Parameters

fileFormDataThe PDF file to split.
pagesStringThe page number to split after (default: 1).

Example Request

curl -X POST https://toolingtools.com/api/v1/split \
  -H "x-api-key: YOUR_KEY" \
  -F "file=@doc.pdf" \
  -F "pages=5"

Compress PDF

Apply industrial-grade compression to reduce file size without losing integrity.

POST/api/v1/compress

Parameters

fileFormDataThe PDF file to compress.

Example Request

curl -X POST https://toolingtools.com/api/v1/compress \
  -H "x-api-key: YOUR_KEY" \
  -F "file=@large.pdf"

Conversions (OCR, Image, Text, Word)

Unified endpoint for advanced PDF conversions.

POST/api/v1/convert

Parameters

fileFormDataThe file to convert.
toolIdQueryTarget tool: pdf-to-image, pdf-to-text, word-to-pdf, ocr

Example Request

curl -X POST https://toolingtools.com/api/v1/convert?toolId=ocr \
  -H "x-api-key: YOUR_KEY" \
  -F "file=@scanned.pdf"

HTML to PDF

Render complex HTML or full web pages into pixel-perfect PDFs.

POST/api/v1/html-to-pdf

Parameters

htmlJSONThe HTML content to render.

Example Request

curl -X POST https://toolingtools.com/api/v1/html-to-pdf \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Hello World</h1>"}'