API Documentation
Integrate PDF·AI's 280+ document operations directly into your app. Upload a file, describe what you want in plain English, and get a processed file back — all in two API calls.
280+
Operations
2 calls
to process a file
REST
multipart/JSON
24h
file retention
Authentication
All requests require an API key in the Authorization header. API key management will be available in an upcoming release.
Plan requirement
API access requires Business or Enterprise plan. Free and Pro plans cannot use the API.
Key format
Keys start with pdfai_. You can have up to 5 active keys per account. Keys are shown in full only once at creation.
Quick Start
Two calls to process any file: POST to process, GET to download. Use /api/v1/process for anything — the AI understands plain English.
How It Works
/api/v1/process with any natural-language instruction for maximum flexibility. Or use the shortcut endpoints (/compress, /merge, etc.) for typed, structured calls.Endpoints
Account
/api/v1/meAccount Info
Returns your plan, daily usage statistics, and all active API keys.
Example
Response
/api/v1/statusSystem Status
Check whether the API and backend processing engine are healthy.
Example
Response
/api/v1/operationsList Operations
Returns every supported operation name (280+). Use these names with the /process endpoint.
Example
Response
Processing
/api/v1/processAI Process (General)
The universal endpoint. Describe what you want in plain English — the AI plans and executes the operation on your file. Supports all 280+ operations.
Parameters — multipart/form-data
Example
Response
/api/v1/compressCompress PDF
Reduce PDF file size. Optionally control the quality tradeoff.
Parameters — multipart/form-data
Example
Response
/api/v1/watermarkAdd Watermark
Stamp a text watermark on every page of a PDF.
Parameters — multipart/form-data
Example
Response
/api/v1/mergeMerge PDFs
Combine two or more PDFs into one document. Files are merged in the order they are sent.
Parameters — multipart/form-data
Example
Response
/api/v1/protectPassword Protect
Encrypt a PDF with a password. The document cannot be opened without the correct password.
Parameters — multipart/form-data
Example
Response
/api/v1/convertConvert Format
Convert files between PDF, Word (DOCX), and Excel (XLSX) formats.
Parameters — multipart/form-data
Example
Response
/api/v1/extractExtract Content
Extract images, tables, or text from a PDF. Tables can be exported as XLSX or DOCX.
Parameters — multipart/form-data
Example
Response
Output
/api/v1/download/:idDownload Result
Download a processed output file using its ID. The ID is returned by every processing endpoint in the outputId field. Files are available for 24 hours.
Example
Response
Error Codes
All errors return JSON with an error field:{ "error": "API call limit reached (10000 calls/month). Upgrade your plan for more." }
400Bad Request
Missing or invalid parameters. Check the error message for details.
401Unauthorized
Missing, invalid, or revoked API key.
403Forbidden
Your current plan does not include API access. Upgrade to Business or Enterprise.
404Not Found
The requested output file does not exist or has expired (files expire after 24 hours).
429Rate Limited
Monthly API call limit reached. Upgrade your plan for more calls.
502Bad Gateway
The processing backend returned an error. Try again or check /api/v1/status.
503Unavailable
Backend is temporarily unreachable. Check /api/v1/status for details.
Plans & Limits
Free
No APIPro
No APIBusiness
API ✓Enterprise
API ✓