POST
/api/v1/compressCompress an image
Submit an image optimization job with format and quality constraints.
Authentication
API key
Scopes
jobs:create
Contract
API v1
Request
curl -X POST 'https://api.maxscanner.app/api/v1/compress' \
-H 'Authorization: Bearer $MAXSCANNER_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: unique-request-id' \
-d '{ "sourceKey": "…", "format": "webp", "quality": 80 }'Request body
{ "sourceKey": "…", "format": "webp", "quality": 80 }Response
{ "jobId": "job_123", "status": "queued" }Implementation notes
- Output limits are plan-dependent.
Try this endpoint
Use the API Playground to authenticate and test safely before wiring the endpoint into your application.
Open Playground →