Skip to main content
GET
/
v1
/
workflows
/
{id}
/
logs
List Workflow Logs
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": {}
}

Request

Path Parameters

id
string
required
Workflow UUID.

Query Parameters

page
integer
default:"1"
Page number.
per_page
integer
default:"25"
Results per page. Maximum 100.
status
string
Filter to a specific run status: success, failed, or skipped.
after
string
ISO 8601 lower bound on triggered_at.

Headers

Authorization: Bearer wbk_your_api_key_here

Response

data
object
meta
object
Pagination metadata.
Responses include X-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"

Example Response

{
  "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 }
}

Errors

StatusCodeDescription
401invalid_keyInvalid or expired API key
403insufficient_permissionsMissing read:workflows permission
404not_foundWorkflow not found
429rate_limitedRate limit exceeded