apyhub
Back

Merge Multiple PDF Files into One PDF API

What it does

PDF Merge combines multiple PDF files into a single PDF. Send at least two files in the files array, and you get one merged PDF back as binary output.

Use it when you need to turn separate reports, invoices, scans, or contract pages into one document for storage, sharing, or downstream processing. The endpoint accepts PDF files as repeated binary file uploads in the request body, with a total size limit of 60 MB.

PDF Merge is a fit for document workflows where order matters. You can merge batches of statements into a monthly packet, combine application attachments into a single submission, or join scanned pages before archiving. The response is a downloadable PDF file, so it slots cleanly into file pipelines without extra parsing.

If your app already accepts uploaded PDFs, this endpoint gives you a simple way to assemble them into one file without handling PDF internals yourself.

POST
Merge PDFs into one
https://api.eu.apyhub.com/freedailypro/merge-multiple-pdf-files-into-one-pdf/merge

QUICKSTART

GUIDE

Quickstart

Merge at least two PDF files into one by uploading them as multipart form files.

curl -X POST "https://api.eu.apyhub.com/freedailypro/merge-multiple-pdf-files-into-one-pdf/merge" \
  -H "apy-token: $APY_TOKEN" \
  -F "files=@/path/to/file1.pdf" \
  -F "files=@/path/to/file2.pdf"

What you'll get back

Returns a binary file (string with format: binary) containing the merged PDF.

TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.
body*
files*
At least two PDFs (repeat the field). 60 MB in total.

About this endpoint

What it does

Merges multiple PDF files into a single PDF and returns the merged PDF as binary output.

Request Body

ParameterTypeMandatoryDescription
filesString ArrayYesAt least two PDF files. Repeat the field for multiple files. Total upload size must be 60 MB or less.

Response

Returns the merged PDF as binary data. The success response is a single binary file, with no JSON wrapper or top-level fields.

Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.