API reference · Scans & reports
Current scan + progress
get
/runs/current| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free user · Pro user Customer token (Bearer) — free and paid users |
Newest run with the the app progress block (steps, per-engine status, retry attempt, brands mentioned so far). Poll while status is queued/running.
Responses
200 — RunSummary & {progress}
| Field | Type | Description |
|---|---|---|
id | integer | Unique ID. |
kind | string | |
status | string | Current status. |
engines | string[] | AI assistants included. |
started_at | string | When it started (ISO 8601). |
finished_at | string | When it finished (ISO 8601). |
done | integer | |
total | integer | |
progress | object | |
progress.done | integer | |
progress.total | integer | |
progress.steps | object[] | |
progress.steps[].key | string | |
progress.steps[].status | string | Current status. |
progress.engines_status | object | Result per AI assistant, keyed by the assistant. |
progress.engines_status.chatgpt | string | |
progress.attempt | any | |
progress.mentioned_so_far | string[] |
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,
"progress": {
"done": 10,
"total": 10,
"steps": [
{
"key": "generated",
"status": "done"
},
{
"key": "asking",
"status": "done"
}
],
"engines_status": {
"chatgpt": "ok"
},
"attempt": null,
"mentioned_so_far": [
"نیکحساب",
"ترازنو",
"دفتریار",
"حسابیار",
"پارسدفتر",
"مهرگانسیستم",
"رایاندفتر"
]
}
}
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)
| Field | Type |
|---|---|
message* | string |
code | string |
json
{
"message": "Please sign in to continue; your session has ended or is not valid.",
"code": "unauthenticated"
}
404 — No brand or no run yet: {"message":"…"}
| Field | Type |
|---|---|
message* | string |
json
{
"message": ""
}
curl example
bash
curl -X GET 'http://127.0.0.1:8010/api/runs/current' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"