Creating a render on Templated is achieved via this endpoint.
This endpoint responds with 202 Accepted after which your render will be queued to generate. Renders are usually rendered within a few seconds. When completed, the status changes to completed.
templatestringREQUIRED The template id that you want to use.
webhook_urlstring A url to POST the full Render object to upon rendering completed.
formatboolean Render format (jpg, png, webp or pdf). Default is jpg.
transparentboolean Make the background transparent when the render format is png. Default is false.
layersobjectREQUIRED An object of layers that will be updated in the template. The object key is the layer name and the value is an object with the following properties to override the template layers:
Layer Parameters
textstring Replacement text you want to use.
image_urlstring Replacement image src for an image layer.
colorstring Color in hex format e.g. “#FF0000”.
backgroundstring Background color in hex format e.g. “#FF0000”.
font_familystring Change the font family.
font_sizestring Change the font size. Use a CSS value like (“24px” or “12pt”)
border_widthinteger Width of the object border.
border_colorstring Border color in hex format e.g. “#FF0000”.
fillstring Shape fill color in hex format e.g. “#FF0000”.
strokestring Shape stroke (border) color in hex format e.g. “#FF0000”.