Skip to content
Select themeSelect language

`POST /api/workflows/templates/{slug}` — materialize a template into a project (WP D). Returns the new workflow id and any triggers the template provisioned (e.g. the token-addressed receiver URLs the user must paste into their git host's webhook UI).

POST
/api/workflows/templates/{slug}
curl --request POST \
--url https://example.com/api/workflows/templates/example \
--header 'Content-Type: application/json' \
--data '{ "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
slug
required
string
Media typeapplication/json

POST /api/workflows/templates/{slug} body — which project to materialize the template into.

object
project_id
required
string format: uuid
Examplegenerated
{
"project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
Media typeapplication/json

POST /api/workflows/templates/{slug} response — the new workflow id plus the triggers the template provisioned.

object
id
required
string format: uuid
triggers
required
Array<object>

One provisioned trigger in the materialization response — the bits the UI surfaces to the user (the URL token for a token-addressed receiver).

object
enabled
required
boolean
id
required
string format: uuid
kind
required
string
token
string | null
Examplegenerated
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"triggers": [
{
"enabled": true,
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"kind": "example",
"token": "example"
}
]
}