KDP paperback file checker
kdp_preflightCheck a KDP paperback interior and cover PDF against Amazon's published file specs and get a signed report. Cost: 5 credits per call. File inputs (interior, cover): base64 string, data: URI or {"url": "https://..."}. Output: JSON. {id, verdict: pass|warn|fail, label, ruleset, specs_date, created_at, files: {interior, cover?: {name, sha256, bytes}}, interior: {trim, pages, bleed, gutter_in, ...}, cover?, checks: [{id, part, status, title, detail}], signature, verify_url}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trim | No | Trim size; found from the page size when omitted | |
| cover | No | Optional wrap cover PDF (back, spine and front in one page, with bleed). | |
| paper | No | white | |
| interior | Yes | The interior PDF: base64 string (or data: URI) or {"url": "https://..."}. Up to 10 MB. |