
Use workflows to stitch multiple PDFs, JPGs, and PNGs, into a single multi-page document.
Inputs
Create a Workflow and use the + Add Input button to declare your inputs. These are the parameters that you'll supply to the API when you run your workflow.
Note: Available inputs can be found on the Create Multi-Page PDF tool page and the API parameters can be found on the API Reference page.

Each Inputs has:
name- used as references in your steps and API requeststype- the type of input you're supplyingtexturlnumberboolean(true/false)
required- determines whether a run must supply this input
Multi-page PDF
Add a Tool step and select Create multi-page PDF from the list. Use the + ref drop-menu to add your inputs to their corresponding fields.

API Workflow Run
Send a POST request to the /v5/workflow_runs endpoint, along with your workflow UID and a list of "urls": ["page1.jpg", "page2.png", "page3.pdf"] .
var data = {
"workflow": "VymBYa7gMjW6JQ2njM",
"inputs": {
"urls": [
"page1.jpg",
"page2.png",
"page3.pdf"
]
}
}
fetch('https://api.bannerbear.com/v5/workflow_runs', {
method: 'POST',
body: JSON.stringify(data),
headers: {
'Content-Type' : 'application/json',
'Authorization' : `Bearer ${API_KEY}`
}
})
Note: Workflows can be created via the API as well. See Create a Workflow for more.

