Authenticate with a bearer API key from a signed-in account, send multipart uploads to tool endpoints, and receive structured JSON responses.
All developer API calls require Authorization: Bearer YOUR_API_KEY from an authenticated account. Signed-up users receive recurring monthly API credits, while public tool pages run through separate website routes and do not expose the developer API anonymously.
UNAUTHORIZED for missing or invalid credentialsVALIDATION_ERROR for bad input or unsupported file typesRATE_LIMITED when daily or burst usage is exceededPROCESSING_ERROR when a conversion fails server-side{
"success": true,
"message": "Operation successful",
"tool": "compress-image",
"input": {
"fileCount": 1,
"files": [{ "fileName": "photo.jpg", "mimeType": "image/jpeg", "size": 482211 }],
"options": { "quality": "80", "outputFormat": "webp" }
},
"output": {
"fileId": "cjxyz123",
"fileName": "photo-compressed.webp",
"size": 82422,
"mimeType": "image/webp",
"outputCount": 1,
"downloadUrl": "/api/download/cjxyz123"
},
"stats": {
"percentSaved": 34.8,
"outputSizeBytes": 82422
}
}POST /api/pdf/mergePOST /api/pdf/splitPOST /api/pdf/remove-pagesPOST /api/pdf/extract-pagesPOST /api/pdf/organize-pdfPOST /api/pdf/scan-to-pdfPOST /api/pdf/optimizePOST /api/pdf/compressPOST /api/pdf/repairPOST /api/pdf/ocrPOST /api/pdf/jpg-to-pdfPOST /api/pdf/word-to-pdfPOST /api/pdf/powerpoint-to-pdfPOST /api/pdf/excel-to-pdfPOST /api/pdf/html-to-pdfPOST /api/pdf/pdf-to-jpgPOST /api/pdf/pdf-to-wordPOST /api/pdf/pdf-to-powerpointPOST /api/pdf/pdf-to-excelPOST /api/pdf/pdf-to-pdfaPOST /api/pdf/rotatePOST /api/pdf/page-numbersPOST /api/pdf/watermarkPOST /api/pdf/cropPOST /api/pdf/editPOST /api/pdf/protectPOST /api/pdf/unlockPOST /api/pdf/signPOST /api/pdf/redactPOST /api/pdf/comparePOST /api/pdf/summarizePOST /api/pdf/translatePOST /api/pdf/organize remains supported for backward compatibility with operation=remove, operation=extract, or the default reorder workflow.
POST /api/image/compressPOST /api/image/resizePOST /api/image/cropPOST /api/image/rotatePOST /api/image/watermarkPOST /api/image/upscalePOST /api/image/convertPOST /api/image/webpPOST /api/image/convert-to-jpgPOST /api/image/png-to-jpgPOST /api/image/convert-from-jpgPOST /api/image/jpg-to-pngPOST /api/image/image-to-pdfGET /api/healthGET /api/download/:fileIdPOST /api/document/process/api/health stays public for system checks. The developer tool aliases and document processing endpoints require authentication and consume monthly API credits.
const response = await fetch("http://localhost:3000/api/image/compress", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY"
},
body: formData
});
const data = await response.json();curl -X POST http://localhost:3000/api/image/compress \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "file=@./photo.jpg" \ -F "quality=80" \ -F "outputFormat=webp"