Skip to main content

Execute Trigger

Manually execute a workflow trigger with optional input data.

POST /api/v1/triggers/:id/execute

Required Scopes: triggers:read, triggers:execute

Request

Path Parameters

ParameterTypeDescription
idstringTrigger ID

Body Parameters

ParameterTypeRequiredDescription
inputsobjectNoInput data for the trigger

Example

curl -X POST "https://api.flowmaestro.io/api/v1/triggers/trigger_abc123/execute" \
-H "X-API-Key: fm_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"customer_id": "cust_12345",
"event_type": "signup"
}
}'

Response

Status: 202 Accepted

{
"data": {
"execution_id": "exec_xyz789",
"trigger_id": "trigger_abc123",
"workflow_id": "wf_xyz789",
"status": "pending",
"inputs": {
"customer_id": "cust_12345",
"event_type": "signup"
}
},
"meta": {
"request_id": "...",
"timestamp": "..."
}
}

Next Steps

Use the Executions API to track the execution status and get results.

Errors

StatusCodeDescription
404resource_not_foundTrigger not found
400validation_errorTrigger is disabled