name, plus definition_version and definition. Build the definition out of the actions and triggers returned by Retrieve Workflow Action Definitions and Retrieve Workflow Trigger Definitions.{{variables.<name>}} placeholders with the values for your account.workflows:write OAuth2 scope.X-Api-Key: ********************{
"data": {
"type": "workflow",
"attributes": {
"name": "Route hot leads to Slack",
"description": "Notifies #sales whenever a company lands on the Hot Leads list.",
"definition_version": "V1",
"definition": {
"triggers": [
{
"name": "company_added_to_list",
"filters": [
{
"attribute": "list_id",
"op": "eq",
"value": "42"
}
]
}
],
"steps": {
"notify_sales": {
"action_name": "send_company_to_slack",
"options": {
"channel": "#sales"
}
}
},
"order": {
"trigger": [
"notify_sales"
]
}
}
}
}
}curl --location 'https://api.leadfeeder.com/v1/workflows?account_id=123456' \
--header 'X-Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"type": "workflow",
"attributes": {
"name": "Route hot leads to Slack",
"description": "Notifies #sales whenever a company lands on the Hot Leads list.",
"definition_version": "V1",
"definition": {
"triggers": [
{
"name": "company_added_to_list",
"filters": [
{
"attribute": "list_id",
"op": "eq",
"value": "42"
}
]
}
],
"steps": {
"notify_sales": {
"action_name": "send_company_to_slack",
"options": {
"channel": "#sales"
}
}
},
"order": {
"trigger": [
"notify_sales"
]
}
}
}
}
}'{
"data": {
"type": "workflow",
"id": "9f8b7c6d5e4f",
"attributes": {
"name": "Route hot leads to Slack",
"description": null,
"enabled": false,
"workflow_type": "company",
"version": 1,
"definition_version": "V1",
"definition": {
"triggers": [
{
"name": "company_added_to_list",
"filters": [
{
"attribute": "list_id",
"op": "eq",
"value": "42"
}
],
"options": {}
}
],
"steps": {
"notify_sales": {
"action_name": "send_company_to_slack",
"options": {
"channel": "#sales"
}
}
},
"order": {
"trigger": [
"notify_sales"
]
}
},
"has_errors": false,
"disabled_at": "2026-08-07T11:04:00Z",
"disabled_reason": "manual",
"created_at": "2026-08-07T11:04:00Z",
"updated_at": "2026-08-07T11:04:00Z",
"app_url": "https://app.leadfeeder.com/z/123456/workflows/9f8b7c6d5e4f"
},
"relationships": {
"created_by": {
"id": "123456",
"type": "user"
},
"disabled_by": null
}
},
"meta": {
"request_id": "cf054205-dd8c-4473-8689-07c30fe0789f"
}
}