v1

latestOpenAPI 3.1.02026-08-06244570.4 KB
PDF Tools

Merge PDFs

Concatenate 2 or more PDFs into a single PDF, in the order provided. Each input PDF is supplied as either an HTTPS URL or a base64 string.

Credits: 1 credit per call.

post/v1/pdf-tools/merge

Request body

export_type'url' | 'binary'
expirationinteger

URL expiration in seconds. Min 60, max 604800. Only applies to url export type.

filenamestring nullable

Custom filename (without .pdf). Defaults to a generic name.

Example request

{
  "filename": "merged",
  "pdfs": [
    {
      "pdf_url": "https://example.com/file.pdf",
      "pdf_base64": "JVBERi0xLjQKJ..."
    }
  ]
}

Response

Successful Response

urlstring required

Signed URL to download the PDF

filenamestring required

Filename of the resulting PDF

credits_remaininginteger required

Remaining credits after this request

expires_ininteger required

Seconds until the signed URL expires