Designs
GET
http://localhost:4000/api/v1 /designs/templates List design templates
Built-in and workspace templates. slots are what POST /designs/render accepts in inputs: a text slot takes text, an image slot takes a media library file id.
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/designs/templates" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /designs/render Render a template into library images
Fills a template with the brand kit and inputs, draws it and files each page in the media library. Answers at once with a job: poll GET /designs/render/{id} until status is done, then use mediaIds in a post.
Request body
application/json
templateIdstring
required
inputsobject
formatstring
clientIdstring
{
"templateId": "string",
"inputs": {},
"format": "png",
"clientId": "string"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/designs/render" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateId":"string","inputs":{},"format":"png","clientId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}GET
http://localhost:4000/api/v1 /designs/render/{id} Get the state of a render
queued, running, done (with mediaIds, one per page) or failed (with error).
Parameters
idstring
path
required
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/designs/render/{id}" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated