Skip to content
Browse all functions

Insert Pages into PDF

files/insertpdfpages

insertpdfpages (Insert Pages into PDF) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/insertpdfpages, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

3 credits per callHTTP APIMake

Inserts all or selected pages of a second PDF into a PDF at any position (beginning, after a page, end). Returns the PDF.

Endpoint

POSThttps://api.1001fx.com/files/insertpdfpages
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • filefileoptional

    The PDF to insert into. Either file or fileUrl.

  • fileUrlstringoptional

    Public URL of the PDF to insert into. Either file or fileUrl.

    Example:
    https://api.1001fx.com/testdata/3pages.pdf
  • insertFilefileoptional

    The PDF whose pages are inserted. Either insertFile or insertFileUrl.

  • insertFileUrlstringoptional

    Public URL of the PDF whose pages are inserted. Either insertFile or insertFileUrl.

    Example:
    https://api.1001fx.com/testdata/file.pdf
  • insertPagesstringoptional

    Pages of the inserted PDF, e.g. 1-2 (first page = 1). Empty: all pages.

    Example:
    1-2
  • afterPagenumberoptional

    Insert after this page; 0 = at the beginning. Empty: at the end.

    Example:
    1

Examples

Insert Pages into PDF

Insert Pages into PDF

Input

Expects multipart/form-data or a json body
{
  "fileUrl": "https://api.1001fx.com/testdata/3pages.pdf",
  "insertFileUrl": "https://api.1001fx.com/testdata/file.pdf",
  "afterPage": 1
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/files/insertpdfpages' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'

Step-by-step guides

Try insertpdfpages now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created