apyhub
FILE CONVERSION · FILE MANIPULATION

Merge Multiple Documents to PDF API

What it does

PDF Merge combines two or more uploaded PDF files into a single PDF. Send an array of binary files in files, and get one merged PDF back as binary output.

Use it when you need to assemble scanned pages, concatenate reports, or bundle customer documents into one download. Because the endpoint works on uploaded files directly, it fits cleanly into document workflows where PDFs arrive from forms, storage buckets, or user uploads.

PDF Merge is a straightforward file operation: the request body contains files, and the response is the merged PDF file. There are no extra metadata fields to map or parse, which keeps integration simple when you just need the final document.

Typical uses include consolidating invoices before archiving, joining generated statements into a packet, or creating a single attachment for sharing and storage.

POST
Merge two or more uploaded PDF files into one PDF
http://localhost:8080/dosvak/merge-pdf-files

QUICKSTART

GUIDE

Quickstart

Merge multiple PDF files by uploading them as multipart form files.

curl -X POST "http://localhost:8080/dosvak/merge-pdf-files" \
  -H "apy-token: $APY_TOKEN" \
  -F "files=@/path/to/first.pdf" \
  -F "files=@/path/to/second.pdf"

What you'll get back

Returns a binary file (string with format: binary), which is the merged PDF.

(binary PDF file)
TRY ITLIVE · 100 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*

About this endpoint

What it does

Merges two or more uploaded PDF files into a single PDF file. The request body contains the PDF file uploads, and the response returns the merged PDF as a binary file.

Request Body

ParameterTypeMandatoryDescription
filesString ArrayYesUploaded PDF files to merge. Provide two or more files. Each item is a binary file upload.

Response

Returns a binary file containing the merged PDF.

ParameterTypeMandatoryDescription
binaryStringYesThe merged PDF file returned by the endpoint.

Body

Name
Type
Description
bodyREQUIRED
object

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.