# mergepdfs: Merge PDFs

> mergepdfs (Merge PDFs) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/mergepdfs, 3 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

Merges up to three PDFs into a single PDF. The orientation of each merged PDF is preserved.

- Group: Files & PDF
- Endpoint: `POST https://api.1001fx.com/files/mergepdfs`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make and n8n
- Docs: https://1001fx.com/functions/mergepdfs

## Parameters

- `file1` (file, required) – PDF file 1: PDF to merged.
- `file2` (file, required) – PDF file 2: PDF to be appended.
- `file3` (file, optional) – PDF file 3: PDF to be appended.

## Use cases

- Combine a cover letter, an offer and the terms into one PDF
- Attach a delivery note to an invoice before sending it
- Merge signed pages back into one document

## Example: Merge 3

```bash
curl -X POST 'https://api.1001fx.com/files/mergepdfs' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file1=@file.pdf' \
  -F 'file2=@pdf-landscape.pdf' \
  -F 'file3=@file.pdf'
```

## FAQ

**How many PDFs can I merge in one call?**

Up to three: file1, file2 and the optional file3. For more files, merge the result again with the next PDFs.

**Are landscape pages kept?**

Yes. The orientation of each merged PDF is preserved.
