Documentation

API URL


POST /api/v1/image-processing/process

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
GET https://datpaq.com/api/v1/image-processing/info?api_key=your-api-key

Successful Response

Status
HTML
200 OK
Body
Code
Binary image response with `Content-Type: image/jpeg

Error Response

Example
Code
400 ValidationError - Missing operations or pipeline field: Pipeline route requires non-empty operations input
400 ValidationError - Missing image and image_url inputs: At least one input source is required
400 ValidationError - Too many operations in pipeline: Maximum operation count is 10
400 ValidationError - Invalid resize crop convert or compress parameters: Operation payload failed validation checks
400 ValidationError - Invalid output.format or output.quality: Output options failed validation checks
400 ValidationError - Conflicting output and operation settings: output.format or output.quality conflicts with convert or compress operation
400 ValidationError - Missing width and height for resize route: Resize route requires both dimensions
400 ValidationError - Missing format or unsupported format for convert route: Convert route supports jpeg png webp avif only
400 ValidationError - Missing x y width or height for crop route: Crop route requires complete crop box
400 ValidationError - Missing uploaded file for upload route: Upload route requires multipart image file
401 AuthenticationError - Missing or invalid API credentials: Gateway authentication rejected request
403 UrlRejected - Remote image URL targets a blocked private local or metadata destination: Remote URL rejected by SSRF policy
413 PayloadTooLarge - Uploaded or remotely fetched image exceeds 10 MB: Image input is too large
502 UpstreamFetchError - Remote image times out or returns an error: Remote image could not be fetched
500 InternalServerError - Decode transform or metadata runtime failure: Image processing operation failed internally

Last Updated:  May 4, 2026