Send a PDF, an angle, and which pages to rotate; get back the same PDF with those pages rotated relative to their existing orientation.
See the Rotate 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="rotate-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=rotate-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.
| angle | number, required | 90, 180, or 270 (also -90, -180, -270 — normalised to a positive equivalent). |
| pages | string, optional | Default "all". A comma-separated selection: N, N-M, N-, last, odd, even, or all. |
Billed per document — $1 (1 credit) per request, regardless of how many pages you rotate.
Delivered via the webhook as outcome=failure with a reason below — see the docs index for the full delivery shape.
| invalid_options | A bad angle, a bad page selection, or a page number outside the document. |
| 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. |