API Documentation
The DIPSAC REST API lets you automate PDF conversion, image processing, SEO analysis, and 100+ more operations. This reference covers authentication, all endpoints, request formats, and error handling.
https://api.dipsac.com/v1Introduction
The DIPSAC API is a REST API that accepts standard HTTP requests and returns responses in JSON or binary format depending on the endpoint. All file inputs are sent as multipart/form-data.
Authentication
All API requests require an API key passed in the X-API-Key request header.
X-API-Key: dps_your_api_key_hereBase URL & Versioning
All API endpoints are versioned. The current stable version is v1.
https://api.dipsac.com/v1Version is included in the path, not a header. When a new version is released, v1 will remain supported for at least 12 months.
Quick Start
Convert a PDF to Word in your preferred language:
/v1/pdf/convertPDF Convert
Convert a PDF to Word (.docx), Excel (.xlsx), plain text (.txt), or images (.png/.jpg).
Request
fileFileYesThe PDF file to convert (max 50 MB on Pro)output_formatstringYesTarget format: docx, xlsx, txt, png, jpgqualityintegerNoImage quality 1–100 (for png/jpg output, default 85)Response
Returns the converted file as a binary stream with the appropriate Content-Type header.
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Content-Disposition: attachment; filename="converted.docx"
X-Processing-Time: 287ms/v1/pdf/compressPDF Compress
Reduce PDF file size while preserving visual quality.
fileFileYesThe PDF to compress (max 50 MB)levelstringNoCompression level: low, medium, high (default: medium)/v1/pdf/mergePDF Merge
Combine multiple PDFs into a single document.
files[]File[]YesArray of PDF files to merge (2–20 files, max 100 MB total)orderstringNoJSON array of indices to control merge order, e.g. [2,0,1]/v1/image/convertImage Convert
Convert images between formats: JPG, PNG, WebP, AVIF, BMP, TIFF, HEIC.
fileFileYesSource image fileoutput_formatstringYesjpg, png, webp, avif, bmp, tiffqualityintegerNoCompression quality 1–100 (default: 85)/v1/dev/json/formatJSON Format
Format, validate, or minify JSON. Returns JSON.
{
"input": "{"name":"DIPSAC","free":true}",
"action": "format", // "format" | "minify" | "validate"
"indent": 2
}{
"output": "{\"name\": \"DIPSAC\",\"free\": true}",
"valid": true,
"size_before": 28,
"size_after": 36
}Error Codes
All errors return a JSON body with error and message fields:
{
"error": "unsupported_format",
"message": "The file format 'bmp' is not supported for this endpoint.",
"docs": "https://dipsac.com/docs#error-codes"
}bad_requestMissing or invalid request parametersunauthorizedInvalid or missing API keyforbiddenAPI key does not have access to this endpointfile_too_largeFile exceeds the size limit for your planunsupported_formatFile format not supported for this operationrate_limitedYou have exceeded your request rate limitserver_errorUnexpected server error — please retryRate Limits
Rate limits are applied per API key per rolling 60-second window:
When rate-limited, the API returns 429 Too Many Requests with a Retry-After header indicating seconds to wait.
File Size Limits
SDKs & Libraries
Official SDKs are coming soon. In the meantime, use our REST API directly with any HTTP client.
Want us to prioritise your language? Let us know →