`GET /api/workflows/templates` — list every shipped template (WP D).
GET
/api/workflows/templates
const url = 'https://example.com/api/workflows/templates';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workflows/templatesResponses
Section titled “Responses”Media typeapplication/json
Array<object>
One template row as returned to the client — the stable slug, the human name + description, and the trigger kind the template seeds by default so the picker can hint at what fires the workflow.
object
default_trigger_kind
required
string
description
required
string
name
required
string
slug
required
string
Examplegenerated
[ { "default_trigger_kind": "example", "description": "example", "name": "example", "slug": "example" }]