Synchronous or asynchronous
By default a request waits for the finished file. Add the header Prefer: respond-async to get a job ID straight away and check for the result later.
Send a template ID and the values that change. The API returns a finished image or PDF that your application can store, publish, or send.
/v1/rendersGenerate an image or PDF.
/v1/renders/{id}Retrieve status and output.
/v1/templatesFind workspace templates.
/v1/usage/allowanceCheck remaining render credits.
POST /v1/renders{
"template": "YOUR_TEMPLATE_ID",
"modifications": {
"headline": "The weekend starts here",
"discount": "30% off"
},
"output": {
"format": "png",
"scale": 1
}
}Use your saved template ID and the parameter names exposed in its API tab. Send the API key as an Authorization bearer header.
By default a request waits for the finished file. Add the header Prefer: respond-async to get a job ID straight away and check for the result later.
Change the parameter values for each image you need. Each request has its own job ID, status, and output.
Every request is recorded with its status, result, and any error, so you can see what was sent and what came back.
Choose the format and scale in each request. The response includes a URL for the finished file.