مرجع API · Scans & reports
List scans
get
/runs| احراز هویت | توکن مشتری (Bearer) |
|---|---|
| سطح دسترسی | کاربر رایگان · کاربر حرفهای Customer token (Bearer) — free and paid users |
All runs of the brand, newest first.
پاسخها
200 — RunSummary[]
| فیلد | نوع | توضیح |
|---|---|---|
id* | integer | Unique ID. |
kind* | string | |
status* | string | Current status. |
engines* | any[] | AI assistants included. |
started_at* | string | null | When it started (ISO 8601). |
finished_at* | string | null | When it finished (ISO 8601). |
done* | integer | |
total* | integer |
json
[
{
"id": 38,
"kind": "scheduled",
"status": "complete",
"engines": [
"chatgpt"
],
"started_at": "2026-11-25T10:16:00Z",
"finished_at": "2026-11-25T10:30:00Z",
"done": 10,
"total": 10
},
{
"id": 37,
"kind": "scheduled",
"status": "complete",
"engines": [
"chatgpt"
],
"started_at": "2026-10-25T10:16:00Z",
"finished_at": "2026-10-25T10:30:00Z",
"done": 10,
"total": 10
}
]
401 — Missing/invalid token, or a token of the wrong owner (admin token on a user route or vice versa): {"message":"…","code":"unauthenticated"} (message in the request language)
| فیلد | نوع |
|---|---|
message* | string |
code | string |
json
{
"message": "Please sign in to continue; your session has ended or is not valid.",
"code": "unauthenticated"
}
404 — No brand yet
| فیلد | نوع |
|---|---|
message* | string |
json
{
"message": ""
}
نمونهٔ curl
bash
curl -X GET 'http://127.0.0.1:8010/api/runs' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"