curl --request GET \
--url https://api.example.com/v1/workflows/{id}/logs{
"data": {
"logs": [
{
"id": "<string>",
"workflow_id": "<string>",
"triggered_at": "<string>",
"entity_type": "<string>",
"entity_id": "<string>",
"status": "<string>",
"skip_reason": "<string>",
"action_result": {},
"error": {},
"duration_ms": 123
}
]
},
"meta": {}
}Return the trigger history for a workflow, including success / failure status
curl --request GET \
--url https://api.example.com/v1/workflows/{id}/logs{
"data": {
"logs": [
{
"id": "<string>",
"workflow_id": "<string>",
"triggered_at": "<string>",
"entity_type": "<string>",
"entity_id": "<string>",
"status": "<string>",
"skip_reason": "<string>",
"action_result": {},
"error": {},
"duration_ms": 123
}
]
},
"meta": {}
}success, failed, or skipped.triggered_at.Authorization: Bearer wbk_your_api_key_here
Show properties
Show Log entry
success, failed, or skippedskipped, why (e.g. daily_cap_reached, condition_not_met){ code, message } for failed runsX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
curl "https://data.leadlex.com/functions/v1/api-gateway/v1/workflows/wf_01HY1/logs?status=failed" \
-H "Authorization: Bearer wbk_your_api_key_here"
{
"data": {
"logs": [
{
"id": "wfl_01HY1",
"workflow_id": "wf_01HY1",
"triggered_at": "2026-04-17T09:31:00Z",
"entity_type": "deal",
"entity_id": "deal_01HY1",
"status": "success",
"skip_reason": null,
"action_result": { "slack_message_ts": "1713351031.001200" },
"error": null,
"duration_ms": 412
}
]
},
"meta": { "page": 1, "per_page": 25, "total": 42 }
}
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing read:workflows permission |
| 404 | not_found | Workflow not found |
| 429 | rate_limited | Rate limit exceeded |