Skip to main content
GET
List templates

Templates

Templates are reusable designs with dynamic variables. Create once, render with different data.
For expression syntax and conditional rendering, see Expressions.

Endpoints

Variable Types

Templates support different variable types in {{variable}} placeholders:

Using Variables in Templates

Simple Interpolation

Conditional Rendering

Expressions

See Expressions for the full expression syntax.

Layout Variants

Templates support multiple layout variants for different platforms. Each layout stores a separate canvas design optimized for a specific size (e.g., Twitter 1200x675, Instagram 1080x1080).
  • Layouts are created via the AI Resize feature in the editor
  • Variables are shared across all layouts
  • Render a specific layout with the layout parameter, or multiple with layouts
  • The default layout key refers to the base template
See Rendering - Layout Variants for details.

Template Content

A template requires either html or fabricJSData (FabricJS canvas JSON), but not both.
Either html or fabricJSData is required when creating a template. You cannot provide both.

Authorizations

Authorization
string
header
required

API key obtained from the Pictify dashboard

Query Parameters

page
integer
default:1
limit
integer
default:12
Required range: x <= 100
sort
enum<string>
default:newest
Available options:
newest,
oldest,
name
outputFormat
enum<string>
default:all
Available options:
all,
image,
pdf

Response

200 - application/json

List of templates

templates
object[]
pagination
object