GET
/api/automation/workflows/:id🔒 Bearer JWTPath 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
| الكود | الرسالة | السبب |
|---|---|---|
| 401 | Unauthorized | |
| 404 | Workflow not found | الـ ID لا يطابق أي workflow. |