GET
/api/v1/flowsيعرض تدفقات مساحة عمل المفتاح، ومنها المسودات والتدفقات الموقوفة مؤقتاً، الأحدث أولاً. صفِّ النتائج بـ status. كل عنصر ملخّص: بلا تعريف وبلا إعدادات.
للأدوات ووكلاء الذكاء الاصطناعي: هذه الصفحة بصيغة Markdown · ملف OpenAPI العام
معاملات الاستعلام
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
status | string: draft, active, paused | لا | التدفقات التي لها هذه الحالة فقط: draft أو active أو paused. |
limit | integer | لا | عدد العناصر في الصفحة، من 1 إلى 100. الافتراضي 20. |
cursor | string | لا | قيمة nextCursor من الصفحة السابقة، كما هي. |
الاستجابة
الرد بالشكل { data, nextCursor }؛ ولكل عنصر في data هذه الحقول:
| الاسم | النوع | الوصف |
|---|---|---|
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 | آخر وقت تغيّر فيه التدفق. |
| الاسم | النوع | الوصف |
|---|---|---|
data | array | عناصر هذه الصفحة. |
nextCursor | string | null | مرّرها في cursor للصفحة التالية؛ وتكون null عندما تنتهي القائمة. |
200
{
"data": [
{
"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"
}
],
"nextCursor": "AZp8x3VqLk2mT9wQe7RsYb4nHc6Jd1Fg"
}الأخطاء
أخطاء نقطة النهاية هذه:
| الحالة | الرمز | متى | الرسالة |
|---|---|---|---|
| 400 | INVALID_STATUS | status ليست حالة تدفق. | The status filter must be one of: draft, active, paused. |
| 400 | INVALID_LIMIT | limit ليس عدداً صحيحاً من 1 إلى 100. | The limit must be a whole number from 1 to 100. |
| 400 | INVALID_CURSOR | cursor ليس nextCursor من هذه القائمة، أو لم يعد صالحاً: ابدأ القائمة من جديد من الصفحة الأولى. | The cursor is not valid. Pass the nextCursor value from a previous response unchanged. |
يمكن لكل نقطة نهاية أيضاً أن تردّ بالأخطاء المشتركة بينها جميعاً، المذكورة في نظرة عامة على 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?status=active&limit=50" \
-H "X-Api-Key: exo_your_key"
# Next page: add &cursor=<nextCursor from the previous answer>// Every page, following nextCursor until it is null.
const items = [];
let cursor = null;
do {
const params = new URLSearchParams({ status: "active", limit: "50" });
if (cursor) params.set("cursor", cursor);
const res = await fetch(`https://exomations.com/api/v1/flows?${params}`, {
headers: { "X-Api-Key": process.env.EXOMATIONS_KEY }, // exo_...
});
const page = await res.json();
if (!res.ok) throw new Error(`${page.code}: ${page.message}`);
items.push(...page.data);
cursor = page.nextCursor;
} while (cursor);
console.log(items.length);import os, requests
items, cursor = [], None
while True:
params = {"status": "active", "limit": 50}
if cursor:
params["cursor"] = cursor
res = requests.get(
"https://exomations.com/api/v1/flows",
headers={"X-Api-Key": os.environ["EXOMATIONS_KEY"]}, # exo_...
params=params,
timeout=15,
)
page = res.json()
if res.status_code != 200:
raise RuntimeError(f"{page['code']}: {page['message']}")
items.extend(page["data"])
cursor = page["nextCursor"]
if not cursor:
break
print(len(items))