Developer REST API v1.5

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:

Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/json
Accept: application/json

Available REST Endpoints

Standardized JSON endpoints with idempotent execution and sub-second average response times.

POST/v1.5/compress-image
Images

Compress JPG, PNG, WebP images to specific target quality or byte constraints while preserving aspect ratio.

POST/v1.5/compress-pdf
PDF

Lossless and lossy PDF compression engine to shrink document size for email attachment limits and portal uploads.

POST/v1.5/convert-image
Images

Instant raster conversion across PNG, JPG, WEBP, GIF, BMP, and SVG formats with customizable quality levels.

POST/v1.5/jpg-to-pdf
PDF

Bundle multiple photo captures or image assets into a unified high-resolution multi-page PDF container.

quickstart.js — Node.js & Browser Fetch
ES6+
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 CodeDescription & Suggested Action
200 OKThe request was processed successfully. Binary or download URL payload returned.
400 Bad RequestInvalid payload, malformed file headers, or unsupported conversion parameters.
401 UnauthorizedMissing or expired Bearer API authentication token in HTTP headers.
413 Payload Too LargeUploaded file size exceeds tier threshold (Free tier limit: 25 MB per call).
429 Rate Limit ExceededRequest limit exhausted for the current monthly billing window.
500 Server ErrorInternal 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.