Skip to main content
POST
/
templates
Create template
curl --request POST \
  --url https://api.helloannie.com/v1/templates \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "variables": [
    {
      "name": "<string>",
      "type": "STRING",
      "description": "<string>"
    }
  ],
  "workflow": {
    "title": "<string>",
    "description": "<string>",
    "steps": [
      {
        "title": "<string>",
        "description": "<string>",
        "instructions": "<string>",
        "order": 1,
        "examples": [
          "<string>"
        ],
        "action": "<string>",
        "actionMetadata": {},
        "childSteps": [
          {
            "title": "<string>",
            "description": "<string>",
            "instructions": "<string>",
            "order": 1,
            "examples": [
              "<string>"
            ],
            "action": "<string>",
            "actionMetadata": {}
          }
        ]
      }
    ],
    "enabled": true,
    "usageContext": "<string>",
    "order": 0
  },
  "description": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "version": 123,
    "createdAt": "<string>",
    "variables": [
      {
        "name": "<string>",
        "type": "STRING",
        "description": "<string>"
      }
    ]
  }
}

Body

Request body for creating a workflow template

name
string
required

User-friendly name for the template

Required string length: 1 - 255
variables
object[]
required

Variable definitions for this template. Use {{variable_name}} in workflow text fields.

workflow
object
required
description
string

Description of what this template does

Response

Response containing the created template

success
enum<boolean>
required
Available options:
true
data
object
required