Merge multiple documents
POST/api/v1/tools/merge
Merge multiple input documents (by storageUrl) into a single document.
All inputs must have the same type: either all PDF or all DOCX.
Mixed types are rejected with a 400 error.
- For PDF inputs, all pages of each PDF are merged in order into a single PDF. Page-based selection is not supported.
- For DOCX inputs, the documents are merged into a single DOCX document. Page selection is not supported and merge operates on the DOCX document structure.
File lifecycle: All input files in the input bucket are deleted
after a successful merge.
Request
Responses
- 200
- 400
- 401
- 402
- 500
Merged document returned as binary response. For PDF inputs the result is a PDF; for DOCX inputs the result is a DOCX file.
Bad request
Unauthorized
Insufficient tokens
Internal server error