Designs

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-designs"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/b518c50b-ef77-465c-881d-d17630656e69/social-card.svg?v=3e7ae33eec8b" alt="Designs" width="600" height="315"></a>
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
templateId
string
required
inputs
object
= {}
format
string
png | jpeg = png
clientId
string
{
  "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

id
string
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