GET
/api/v1/flows/{flowId}يعيد تدفقاً واحداً من مساحة عمل المفتاح. تذكر steps معرّف كل خطوة ونوعها وتسميتها، ولا تذكر إعداداتها أبداً. التدفق غير الموجود، وتدفق مساحة عمل أخرى، والتدفق المحجوب، كلها تردّ بالحالة 404 نفسه.
للأدوات ووكلاء الذكاء الاصطناعي: هذه الصفحة بصيغة Markdown · ملف OpenAPI العام
معاملات المسار
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
flowId | string | نعم | معرّف التدفق. |
الاستجابة
الرد كائن واحد بهذه الحقول:
| الاسم | النوع | الوصف |
|---|---|---|
id | string | معرّف التدفق. |
name | string | اسم التدفق. |
status | string | draft أو active أو paused. |
mode | string | simple أو orchestration. |
triggerType | string | null | طريقة بدء التدفق، مثل webhook (مشغّل API) أو scheduled أو form أو manual. |
nodeCount | integer | عدد الخطوات (لا تُحسب الملاحظات على اللوحة). |
updatedAt | string (date-time) | null | آخر وقت تغيّر فيه التدفق. |
description | string | null | وصف التدفق. |
projectId | string | المشروع الذي ينتمي إليه التدفق. |
triggerUrl | string | null | عنوان تشغيل تدفق لهذا التدفق عندما يكون نوع مشغّله webhook أو غير مضبوط، على العنوان الرئيسي للمنصة؛ وإلا فقيمته null. |
steps | array of { id, type, label } | قيم id وtype وlabel لكل خطوة (قد تكون label قيمتها null). بلا إعدادات. |
200
{
"id": "7a17617d-3c4e-4f0a-9b1e-2d5c8e0f4a61",
"name": "Overdue invoice reminders",
"status": "active",
"mode": "orchestration",
"triggerType": "webhook",
"nodeCount": 2,
"updatedAt": "2026-11-15T14:02:51.000Z",
"description": "Emails a reminder for every invoice that is more than 30 days overdue.",
"projectId": "c3e1a9d4-8b2f-4f6e-a0c7-5d9b2e1f7a33",
"triggerUrl": "https://exomations.com/api/trigger/7a17617d-3c4e-4f0a-9b1e-2d5c8e0f4a61",
"steps": [
{
"id": "trigger_1",
"type": "trigger",
"label": "Webhook"
},
{
"id": "http_1",
"type": "http_request",
"label": "Post order"
}
]
}الأخطاء
أخطاء نقطة النهاية هذه:
| الحالة | الرمز | متى | الرسالة |
|---|---|---|---|
| 404 | NOT_FOUND | لا يوجد تدفق أو تشغيل كهذا في مساحة عمل المفتاح (معرّفات مساحات العمل الأخرى والتدفقات المحجوبة تردّ بالمثل)، أو مسار غير معروف. | The requested resource was not found. |
يمكن لكل نقطة نهاية أيضاً أن تردّ بالأخطاء المشتركة بينها جميعاً، المذكورة في نظرة عامة على REST API.
| الحالة | الرمز | متى | الرسالة |
|---|---|---|---|
| 401 | UNAUTHENTICATED | المفتاح مفقود، أو ليس مفتاح API من إكزوميشنز، أو غير معروف أو غير نشط أو منتهي الصلاحية أو محذوف، أو أُرسل في الرابط أو في ترويسة Authorization. | A valid API key is required in the X-Api-Key header. |
| 402 | PENDING_PAYMENT | مساحة العمل بانتظار التحقق من بطاقتها (في كل نقاط النهاية عدا GET /usage). | Payment required. Complete the 1 SAR card verification on the Billing page to activate your account. |
| 403 | FORBIDDEN | المفتاح لا يحمل read. | This API key does not have the Read permission. |
| 403 | FORBIDDEN | مساحة العمل موقوفة. | This workspace is suspended. |
| 403 | API_NOT_ENABLED | الوصول عبر REST API مغلق في مساحة العمل. | REST API access is turned off for this workspace. An admin or the owner can turn it on on the API Keys page. |
| 405 | METHOD_NOT_ALLOWED | طريقة غير GET أو HEAD. تذكر الترويسة Allow الطرق المسموحة. | This endpoint does not support this method. See the Allow header. |
| 429 | RATE_LIMITED | طلبات كثيرة خلال دقيقة (والطلبات التي لا تحمل مفتاحاً صحيحاً محدودة أيضاً). | Rate limit reached. Retry after the number of seconds in the Retry-After header. |
| 500 | INTERNAL | حدث عطل من جهتنا. أعد المحاولة، وإذا تكرر ذلك فتواصل مع الدعم. | Something went wrong on our side. Please try again. |
تظهر الرسائل كما يرسلها الخادم تماماً، بالإنجليزية. القيمة بين علامتي < > تُملأ وقت التشغيل.
أمثلة
curl https://exomations.com/api/v1/flows/YOUR_FLOW_ID \
-H "X-Api-Key: exo_your_key"const res = await fetch("https://exomations.com/api/v1/flows/YOUR_FLOW_ID", {
headers: { "X-Api-Key": process.env.EXOMATIONS_KEY }, // exo_...
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.message}`);
console.log(body.name, body.status);import os, requests
res = requests.get(
"https://exomations.com/api/v1/flows/YOUR_FLOW_ID",
headers={"X-Api-Key": os.environ["EXOMATIONS_KEY"]}, # exo_...
timeout=15,
)
body = res.json()
if res.status_code != 200:
raise RuntimeError(f"{body['code']}: {body['message']}")
print(body["name"], body["status"])