Rawi

API reference · Scans & reports

Current scan + progress

get/runs/current
AuthenticationCustomer token (Bearer)
AccessFree 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}

FieldTypeDescription
idintegerUnique ID.
kindstring
statusstringCurrent status.
enginesstring[]AI assistants included.
started_atstringWhen it started (ISO 8601).
finished_atstringWhen it finished (ISO 8601).
doneinteger
totalinteger
progressobject
progress.doneinteger
progress.totalinteger
progress.stepsobject[]
progress.steps[].keystring
progress.steps[].statusstringCurrent status.
progress.engines_statusobjectResult per AI assistant, keyed by the assistant.
progress.engines_status.chatgptstring
progress.attemptany
progress.mentioned_so_farstring[]
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)

FieldType
message*string
codestring
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":"…"}

FieldType
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"

Try it in the console