GenZDoc API Documentation
Integrate GenZDoc's enterprise-grade file compression, document conversion, and PDF manipulation capabilities directly into your web, mobile, and backend services.
🔑 Authentication & Headers
All API requests require Bearer token authentication passed in the Authorization header:
Available REST Endpoints
Standardized JSON endpoints with idempotent execution and sub-second average response times.
Compress JPG, PNG, WebP images to specific target quality or byte constraints while preserving aspect ratio.
Lossless and lossy PDF compression engine to shrink document size for email attachment limits and portal uploads.
Instant raster conversion across PNG, JPG, WEBP, GIF, BMP, and SVG formats with customizable quality levels.
Bundle multiple photo captures or image assets into a unified high-resolution multi-page PDF container.
const response = await fetch('https://api.genzdoc.com/v1.5/compress-image', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_GENZDOC_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
image_url: 'https://yourdomain.com/uploads/photo.jpg',
quality: 80,
format: 'webp'
})
});
const result = await response.json();
console.log('Optimized URL:', result.compressed_url);HTTP Status Codes & Error Handling
GenZDoc uses conventional HTTP status codes to indicate the outcome of API requests.
| Status Code | Description & Suggested Action |
|---|---|
| 200 OK | The request was processed successfully. Binary or download URL payload returned. |
| 400 Bad Request | Invalid payload, malformed file headers, or unsupported conversion parameters. |
| 401 Unauthorized | Missing or expired Bearer API authentication token in HTTP headers. |
| 413 Payload Too Large | Uploaded file size exceeds tier threshold (Free tier limit: 25 MB per call). |
| 429 Rate Limit Exceeded | Request limit exhausted for the current monthly billing window. |
| 500 Server Error | Internal processing failure. File corruption or encrypted PDF password issue. |
Architecture & Security Highlights
Image Compression Engine
Compress JPEG, PNG, WebP, and AVIF images via high-throughput REST API endpoints with precision control.
High-Volume PDF Operations
Compress, merge, split, watermark, and reorder PDF pages programmatically with zero server latency bottlenecks.
Bi-Directional Format Conversion
Convert between popular document and raster graphics formats including Word, Excel, PowerPoint, and PDF.
Sub-Second Edge Latency
Global multi-region edge nodes guarantee instantaneous document processing with strict data privacy protocols.
Prefer Using Our Interactive Web Suite?
Every single one of our document and image tools is available 100% free with no registration or credit card required.