About this endpoint
What it does
Merges several PDFs into one file. Send the PDFs as public URLs or Base64 in a JSON body, and pick how the merged file comes back.
Request Body
| Parameter | Type | Description |
|---|---|---|
| pdf_urls | String Array | Required if pdf_base64 is not set. Public URLs of the PDFs to merge, in order. Each must be http or https. Max length 2083 characters per URL. |
| pdf_base64 | String Array | Required if pdf_urls is not set. Base64-encoded PDFs to merge, in order. Provide exactly one of pdf_urls or pdf_base64. |
| filename | String | Name of the merged file. Default: merged.pdf. Max length 255 characters. |
| response_mode | String | How the merged PDF is returned. Allowed values: binary, base64, json, url. Default: binary. |
Response
Returns the merged PDF in the shape set by response_mode. In json mode, returns a JSON object with the file and its metadata.
| Parameter | Type | Description |
|---|---|---|
| filename | String | Name of the merged PDF. |
| size | Integer | Size of the merged PDF in bytes. |
| created_at | String | UTC timestamp when the file was created. |
| pdf_base64 | String | Base64-encoded merged PDF. |
Notes
- Provide exactly one of
pdf_urlsorpdf_base64. binaryreturns the PDF file itself, not JSON.base64returns onlyfilenameandpdf_base64.urlreturnsfile_url,expires_atandexpires_in_seconds. The link needs no authentication and stops working after it expires.- The request body must be under 5 MB. Larger bodies return
413. - PDFs are merged in the order they appear in the list.
- If an item is not a readable PDF, is password-protected, or its URL cannot be loaded, it is currently left out of the merged file while at least one item is valid. Check the result if you need every input included.



