Templated icon

Templated

Automate the generation of images, videos, and PDFs with Templated (https://templated.io)

Create a Template

AI-generated

Summary

Create a new template in the Templated system with a specified name, width, height, and layers defined as a JSON array of layer objects. Each layer must include a name, type (text, image, or shape), and positioning properties (x, y, width, height).

Inputs

  • Template Name (required) — The name of the template.
  • Width (required) — The width of the template in pixels, maximum 5000.
  • Height (required) — The height of the template in pixels, maximum 5000.
  • Layers (JSON) (required) — JSON array defining layers with 'layer' (name), 'type' (text/image/shape), and positioning properties (x, y, width, height).
  • Request Options — Optional HTTP request settings such as batching, proxy, timeout, and SSL certificate validation.

Output shape

a single JSON object representing the created template as returned by the API

The created template includes the assigned template ID and its configuration as specified. Errors may be returned if the input JSON is invalid or required fields are missing.

Examples

Example 1: Create a simple text template

Provide a name, specify width and height, and define a layers JSON with at least one text layer with position and size.

Links

Discussion