Send a PDF, get back a zip containing every split-out part plus a manifest — split by explicit page ranges, a fixed page count, or one file per page.
See the Split PDF tool page, or the docs index for authentication, the shared request/webhook contract, and the generic error table.
POST /webhooks/trigger — same endpoint and fields as every tool, with tool="split-pdf" set explicitly (it's not the default).
curl -X POST https://api.anyconvert.app/webhooks/trigger \ -H "x-api-key: your_api_key_here" \ -F "file=@report.pdf" \ -F "fileId=document-001" \ -F "referenceId=reference-001" \ -F "tool=split-pdf"
An optional options multipart field carrying a JSON object, validated synchronously before a credit is charged — a bad value is rejected with 400, not charged and not queued. Exactly one of ranges, every, or each must be given.
| ranges | string[], optional | One output file per range, e.g. ["1-3", "4-6", "7"]. |
| every | number, optional | A new file every N pages (the last file may be shorter), 1 to the page count. |
| each | boolean, optional | true — one file per page. |
The file part of the webhook delivery is a .zip (not a single PDF) containing part-001.pdf, part-002.pdf, ... (up to SPLIT_MAX_PARTS, 1000) plus a manifest.json listing each part's page numbers and size.
Billed per document — $1 (1 credit) per split, regardless of how many parts the zip ends up containing.
Delivered via the webhook as outcome=failure with a reason below — see the docs index for the full delivery shape.
| invalid_options | None or more than one of ranges/every/each given, a bad range, a page outside the document, or more than 1000 parts. |
| encrypted_file | The PDF is password protected. |
| invalid_file | The file could not be read, or was not the format this tool expects. |
| render_failed | Something failed during conversion that wasn’t a problem with the input itself. |
| timeout | The job did not finish within its time budget. |
| internal_error | An unexpected error on our side. |