PDF Merge API reference
Base URL: https://api.justapi.tech. The merge is in beta: the request shape below may still change before general
availability, and the changelog will say so.
| Method | Path | Description | Modes |
|---|---|---|---|
POST |
/v1/pdf/merge |
Merge PDFs in order | sync, async (sync: result under 10 MB) |
Request
The sources are an ordered list. Each entry is a URL, or the id of a file you uploaded. The result is one PDF with the pages in list order.
{
"sources": [
{ "url": "https://example.com/cover.pdf" },
{ "url": "https://example.com/body.pdf" }
],
"options": {}
}
Billing and failures
The job is all or nothing. If any source cannot be read, the job fails, no output is written, and the charge is $0.00. The charge depends on the size of the result: up to 25 MB or from 25 to 200 MB, at the tier for the month.
Example
curl https://api.justapi.tech/v1/pdf/merge \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{"sources":[{"url":"https://example.com/cover.pdf"},{"url":"https://example.com/body.pdf"}]}'
The full envelope, error catalog and billing rule are the same across every JustAPI service: see the API reference index and error codes.