Skip to main content
GET
/
v1
/
workflows
/
{id}
Get Workflow
curl --request GET \
  --url https://api.example.com/v1/workflows/{id}
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "enabled": true,
    "condition_entity": "<string>",
    "condition_field": "<string>",
    "condition_operator": "<string>",
    "condition_value": "<string>",
    "action_type": "<string>",
    "action_config": {},
    "max_triggers_per_day": 123,
    "triggers_today": 123,
    "last_triggered_at": "<string>",
    "auto_disabled_reason": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Request

Path Parameters

id
string
required
Workflow UUID.

Headers

Authorization: Bearer wbk_your_api_key_here

Response

data
object
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 \
  -H "Authorization: Bearer wbk_your_api_key_here"

Example Response

{
  "data": {
    "id": "wf_01HY1",
    "name": "Notify owner on lost deals",
    "enabled": true,
    "condition_entity": "deal",
    "condition_field": "status",
    "condition_operator": "changed_to",
    "condition_value": "lost",
    "action_type": "send_channel_message",
    "action_config": {
      "channel": "slack",
      "recipient": "{{deal.owner.slack_id}}",
      "message": "Deal {{deal.name}} was marked lost."
    },
    "max_triggers_per_day": 100,
    "triggers_today": 3,
    "last_triggered_at": "2026-04-17T09:31:00Z",
    "auto_disabled_reason": null,
    "created_at": "2026-03-01T08:00:00Z",
    "updated_at": "2026-04-17T09:31:00Z"
  }
}

Errors

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