Skip to main content
POST
Save workflow as template

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json

Body

Request body for saving a workflow's config as a template (new or existing)

workflowId
string<uuid>
required

Source workflow ID to extract config from

name
string

Name for the new template (required if templateId is not set)

Required string length: 1 - 255
description
string

Description for the new template

Maximum string length: 2000
templateId
string<uuid>

Existing template ID to add a new version to (mutually exclusive with name)

includeParts
enum<string>[]

Which workflow parts to include in the template. If omitted, all parts are included.

Minimum array length: 1
Available options:
prompt,
schema,
schemaValidationRules,
notifications,
frequency

Response

201

Response for saving a workflow as a template

error
enum<boolean>
required

Error flag (always false on success)

Available options:
false
success
enum<boolean>
required

Success flag

Available options:
true
data
object
required