# PDF Merge API

> PDF Merge combines 2 to 10 PDFs into one file, keeping their order, and returns a download link valid for 2 days. Upload the files or send their URLs. Paid plans add a breakdown of where each source document starts and ends in the merged file.

**Endpoint:** `POST https://api.apiverve.com/v1/pdfmerge`  
**Category:** Documents  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/pdfmerge

## Overview

A PDF merge API for combining PDFs into one file without installing a PDF library. Upload 2 to 10 PDFs as multipart files, or send their public URLs, and they are joined in the order you give them. Pages are copied whole, so text, images, fonts and page sizes are kept as they were.

The response gives a signed download link to the merged file, valid for two days, along with its file name, page count, size in bytes and the number of files merged. It suits invoice and statement bundles, report packs assembled from several generators, contract packets, and a merge PDF files step in a no-code workflow that already has the documents online.

Each call accepts up to 10 PDFs, 10 MB each and 25 MB in total, with at most 500 pages in the merged file. Encrypted PDFs are rejected; remove the password first. The Free plan returns the merged file and its totals. Paid plans add a breakdown of where each source document starts and ends in the merged PDF, which helps when you build a table of contents or link back to the originals.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/pdfmerge" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "pdfs=@document-1.pdf" \
  -F "pdfs=@document-2.pdf"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `urls` | array | No | A JSON array of 2 to 10 public PDF URLs, merged in order; a comma- or newline-separated list also works. Or upload the PDFs as multipart files instead |

## Response fields

- `pdfName` — string · File name of the merged PDF
- `fileCount` — number · Number of PDFs merged
- `pageCount` — number · Pages in the merged PDF
- `size` — number · Size of the merged PDF in bytes
- `expires` — number · When the download link expires (Unix time in milliseconds)
- `downloadURL` — string · Signed link to download the merged PDF, valid for 2 days
  - `sources.0.index` — number · Position of the file in the request, from 1 · (premium)
  - `sources.0.name` — string · File name of the input · (premium)
  - `sources.0.pageCount` — number · Pages in this input · (premium)
  - `sources.0.startPage` — number · First page of this input in the merged PDF · (premium)
  - `sources.0.endPage` — number · Last page of this input in the merged PDF · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "pdfName": "a356acc9-c44f-4363-9cda-14ed160d5f5d.pdf",
    "fileCount": 2,
    "pageCount": 5,
    "size": 13539,
    "expires": 1792230036453,
    "downloadURL": "https://storage.googleapis.com/apiverve/APIData/pdfmerge/a356acc9-c44f-4363-9cda-14ed160d5f5d.pdf?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1792230036&Signature=R5%2B9%2FIKgsCiWQ7ibAS4Z%2B%2FLpYbNYc7hbAQGI%2FUtvmietXWHJxZK9x4%2FYYdLR6OXAVfvasiSNV2S8iie1Hz7xBGlTJMN8db%2BJ2tkE7GTnOXItMqMU8nuB0z6eddkoQmBESG8EOBr3AEG4x7XaEmP47FqUFsWoikKL2yhwZ9VHL%2F5ANZbvYnfbY1WBjVVOY4wQE1T6CDHM6En2Ov%2FzbTUENH7dasoIaJKWCXa7b1hBhc5MLOMB0MUQWRjb3cVoTHkZ1IRKh3InOdUduyORXOJpwLBTfLu6Q7%2FMEASTXd2j1N9F3OSJ7LYpOfiVhSvA%2FIW6CT2srzKniP5KgeX%2BYKTnNQ%3D%3D",
    "sources": [
      {
        "index": 1,
        "name": "rotation.pdf",
        "pageCount": 2,
        "startPage": 1,
        "endPage": 2
      },
      {
        "index": 2,
        "name": "sizes.pdf",
        "pageCount": 3,
        "startPage": 3,
        "endPage": 5
      }
    ]
  }
}
```

## Use cases

- **Document Packets** — Bundle a contract, its schedules and supporting documents into one PDF for signing or archiving.
- **Report Assembly** — Join generated report sections, cover pages and appendices into a single deliverable.
- **Invoice Batches** — Combine a customer's invoices or statements for the month into one file to send.
- **Application Uploads** — Merge the separate scans a user uploads into one document before storing it.

## More

- Full reference: https://docs.apiverve.com/ref/pdfmerge
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
