Get Workflow

استرجاع workflow + آخر 10 runs + الـ schedules.

GET/api/automation/workflows/:id🔒 Bearer JWT

Path Parameters

الحقلالنوعالوصف
id*stringمعرّف الـ workflow (cuid).

مثال طلب

curl https://operix.operixdigital.com/api/automation/workflows/clx123abc \
  -H "Authorization: Bearer $TOKEN"

مثال استجابة

{
  "id": "clx123abc",
  "name": "ترحيب بعميل جديد",
  "triggerType": "EVENT",
  "triggerConfig": { "eventName": "client.created" },
  "nodes": [
    { "id": "greet", "type": "send_whatsapp", "config": {...} }
  ],
  "isActive": true,
  "runCount": 47,
  "successCount": 45,
  "failureCount": 2,
  "domain": "WHATSAPP",
  "tags": ["welcome"],
  "runs": [
    {
      "id": "run_xyz",
      "status": "SUCCESS",
      "durationMs": 1245,
      "startedAt": "...",
      "completedAt": "..."
    }
  ],
  "schedules": []
}

Errors

الكودالرسالةالسبب
401Unauthorized
404Workflow not foundالـ ID لا يطابق أي workflow.