API v1

Developer API

Integrate PDF processing into your applications. Compress, merge, protect, and convert PDFs with simple REST API calls.

Quick Start

1. Get your API key

Create an API key from your dashboard.

2. Make your first request

bash
curl -X POST "https://pdfconverter.bd/api/v1/compress" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]" \
  -F "quality=medium" \
  -o compressed.pdf

3. Check the response

On success, you'll receive the processed PDF file directly. Check response headers for metadata:

  • X-Processing-Time-Ms - Processing time in milliseconds
  • X-RateLimit-Remaining - Remaining requests this window

Authentication

All API requests require authentication. Include your API key in the request:

Authorization Header (Recommended)

http
Authorization: Bearer fpdf_live_xxxx...

X-API-Key Header

http
X-API-Key: fpdf_live_xxxx...

Endpoints

POST/api/v1/compress

Compress PDF

Reduce the file size of a PDF while maintaining quality.

Parameters

NameTypeRequiredDescription
fileFileYesPDF file to compress
qualitystringNolow, medium (default), high
POST/api/v1/merge

Merge PDFs

Combine multiple PDF files into a single document.

Parameters

NameTypeRequiredDescription
filesFile[]YesArray of PDF files (min 2)
POST/api/v1/protect

Protect PDF

Add password protection to a PDF file.

Parameters

NameTypeRequiredDescription
fileFileYesPDF file to protect
passwordstringYesPassword to set

Rate Limiting

API requests are rate limited based on your plan. Limits reset every minute.

PlanRequests/minMax File Size
API Free1010 MB
API Starter6025 MB
API Pro30050 MB
API Business1,000100 MB

Error Codes

StatusCodeDescription
400MISSING_FILENo file was provided in the request
401UNAUTHORIZEDInvalid or missing API key
413FILE_TOO_LARGEFile exceeds maximum size for your plan
429RATE_LIMIT_EXCEEDEDToo many requests, retry after cooldown
500INTERNAL_ERRORServer error, please retry

Ready to Build?

Get your API key and start integrating PDF processing today.