Skip to main content
POST
/
templates
Create a template
curl --request POST \
  --url https://api.pictify.io/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "html": "<string>",
  "fabricJSData": {},
  "width": 123,
  "height": 123,
  "type": "<string>",
  "category": "<string>",
  "tags": [
    "<string>"
  ],
  "variableDefinitions": [
    {
      "name": "<string>",
      "type": "text",
      "defaultValue": "<string>",
      "description": "<string>",
      "validation": {
        "required": true,
        "minLength": 123,
        "maxLength": 123
      }
    }
  ],
  "outputFormat": "image"
}
'
{
  "template": {
    "uid": "<string>",
    "name": "<string>",
    "type": "<string>",
    "category": "<string>",
    "tags": [
      "<string>"
    ],
    "width": 123,
    "height": 123,
    "thumbnail": "<string>",
    "outputFormat": "image",
    "variableDefinitions": [
      {
        "name": "<string>",
        "type": "text",
        "defaultValue": "<string>",
        "description": "<string>",
        "validation": {
          "required": true,
          "minLength": 123,
          "maxLength": 123
        }
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key obtained from the Pictify dashboard

Body

application/json
name
string
required
html
string
fabricJSData
object
width
integer
height
integer
type
string
category
string
tags
string[]
variableDefinitions
object[]
outputFormat
enum<string>
Available options:
image,
pdf

Response

200 - application/json

Template created

template
object