API reference
10 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/workflowsList workflows/api/v1/w/{workspaceId}/workflowsCreate a workflow (version 1)/api/v1/w/{workspaceId}/workflows/{id}Workflow with all versions/api/v1/w/{workspaceId}/workflows/{id}Save a new version (becomes active version)/api/v1/w/{workspaceId}/workflows/{id}Delete a workflow/api/v1/w/{workspaceId}/workflows/{id}/activeActivate / deactivate/api/v1/w/{workspaceId}/workflows/{id}/versions/{versionId}/restoreMake an older version active/api/v1/w/{workspaceId}/workflows/{id}/runRun now (testMode=true is a dry run that changes nothing)/api/v1/w/{workspaceId}/workflows/{id}/runsExecution history with per-block log/api/v1/w/{workspaceId}/workflows/{id}/webhook-tokenRotate the inbound webhook token (shown once)/api/v1/w/{workspaceId}/workflowsList workflows
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/workflowsCreate a workflow (version 1)
Path parameters
workspaceIdrequired | string |
Request body (JSON)
namerequired | stringLength 1–120 |
triggerrequired | enumOne of: lead.created, lead.enriched, lead.scored, lead.status_changed, reply.categorized, email.bounced, lead.unsubscribed, meeting.booked, campaign.paused, opportunity.stage_changed, manual, schedule.daily, webhook.received |
graphrequired | object |
graph.blocksrequired | any[] |
maxRunsPerDay | integerRange 1–100000 · Default 1000 |
changeNote | stringLength 0–300 |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"trigger": "lead.created",
"graph": {
"blocks": [
null
]
},
"maxRunsPerDay": 1000,
"changeNote": "string"
}'/api/v1/w/{workspaceId}/workflows/{id}Workflow with all versions
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/workflows/{id}Save a new version (becomes active version)
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
namerequired | stringLength 1–120 |
triggerrequired | enumOne of: lead.created, lead.enriched, lead.scored, lead.status_changed, reply.categorized, email.bounced, lead.unsubscribed, meeting.booked, campaign.paused, opportunity.stage_changed, manual, schedule.daily, webhook.received |
graphrequired | object |
graph.blocksrequired | any[] |
maxRunsPerDay | integerRange 1–100000 · Default 1000 |
changeNote | stringLength 0–300 |
curl -X PUT "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"trigger": "lead.created",
"graph": {
"blocks": [
null
]
},
"maxRunsPerDay": 1000,
"changeNote": "string"
}'/api/v1/w/{workspaceId}/workflows/{id}Delete a workflow
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/workflows/{id}/activeActivate / deactivate
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
activerequired | boolean |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/active" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"active": true
}'/api/v1/w/{workspaceId}/workflows/{id}/versions/{versionId}/restoreMake an older version active
Path parameters
workspaceIdrequired | string |
idrequired | string |
versionIdrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/versions/$VERSION_ID/restore" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/workflows/{id}/runRun now (testMode=true is a dry run that changes nothing)
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
testMode | booleanDefault true |
payload | objectDefault {} |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/run" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"testMode": true,
"payload": {}
}'/api/v1/w/{workspaceId}/workflows/{id}/runsExecution history with per-block log
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/runs" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/workflows/{id}/webhook-tokenRotate the inbound webhook token (shown once)
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/webhook-token" \
-H "Authorization: Bearer $EMN_API_KEY"