Workflows

Manually execute a workflow

POST
/api/workflows/{id}/execute

Runs a workflow synchronously through the workflow engine for testing or one-off use. Optional contactId/conversationId scope the run; the response includes the WorkflowExecution record plus a summary of nodes executed and duration.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Optional scoping for a manual run. Forwarded to the queued job as trigger.contactId / trigger.conversationId so workflow nodes can reference an existing contact/conversation.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/workflows/string/execute" \  -H "Content-Type: application/json" \  -d '{    "contactId": "64b2c3d4e5f60012345678aa",    "conversationId": "64d2f9c5e8a1d4e001a0b1c2"  }'
{  "success": true,  "message": "Workflow execution queued",  "queued": true}