Skip to content

Merge PDFs

POST
/v1/pdf/merge
curl -H "X-Api-Key: $KEY" -F files=@a.pdf -F files=@b.pdf \
-F outputFilename=both http://localhost:9027/v1/pdf/merge -o both.pdf

Merges PDFs in the order sent.

Media typemultipart/form-data
object
files
required

Two or more PDFs, merged in order.

Array<string>
outputFilename
string | null

The merged PDF

Media typeapplication/pdf

The file, as bytes.

string format: binary

Accepted; the result goes to the webhook

The request is wrong

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}

An engine is unavailable or the request timed out

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}