AnyConvert
← All docs

Merge PDF

Send two or more PDFs as repeated file parts, in the order you want them combined; get the merged PDF delivered to your webhook.

See the Merge PDF tool page, or the docs index for authentication, the shared request/webhook contract, and the generic error table.

Request

POST /webhooks/trigger, same endpoint and fields as every tool, with tool="merge-pdf" set explicitly (it's not the default).

curl
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=merge-pdf"

Options

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.

bookmarksstring, optional"none" (default) or "files": add one top-level bookmark per source file.
titlesstring[], optionalOne title per input file (used with bookmarks: "files"), each up to 200 characters.
pageRangesstring[], optionalOne range per input file, e.g. "1-3,5", to merge only those pages from that file.
passwordsstring[], optionalOne password per input file, for any that are encrypted.
onBadInputstring, optional"fail" (default) or "skip": skip an unreadable input instead of failing the whole merge.
metadataobject, optionalOnly title and author keys, set on the merged output.

Response

Send the file field multiple times in the same request (up to 200 files), one per PDF, in merge order. A single file still works as before.

Pricing

Billed per document, not per input file: $1 (1 credit) per merge, however many PDFs you combine.

Failure reasons

Delivered via the webhook as outcome=failure with a reason below; see the docs index for the full delivery shape.

encrypted_fileAn input is password protected and no matching password was given.
invalid_fileThe file could not be read, or was not the format this tool expects.
render_failedSomething failed during conversion that wasn’t a problem with the input itself.
timeoutThe job did not finish within its time budget.
internal_errorAn unexpected error on our side.
AnyConvert
A simple conversion API for teams that need documents turned into the right format, automatically.
Tools
PDF to WordMerge PDFJPG to PDFSign PDFEdit PDFCompress PDFExtract Text with CoordinatesView all tools →
Product
DocsPricing
Legal
Terms of ServicePrivacy PolicyRefund Policy
Support
support@anyconvert.app
© 2026 AnyConvert. All rights reserved.