Rawi

API reference · Public

Service status

get/status
AuthenticationNone (public)
AccessGuest · Free user · Pro user · Consultant · Super admin

Public — no token, reachable while the API is down

Whether the service is live, in planned maintenance or updating (a deploy in progress). Set with php artisan rawi:down --mode=maintenance|updating --message=… --until=ISO8601 and cleared with php artisan up (see the maintenance-mode runbook). This route is excluded from Laravel's maintenance mode; while down, every other /api/* route answers 503 with {"error":"maintenance","code":"maintenance","state","message","until","retry_after"} and a Retry-After header, and the web app switches to its maintenance / updating page and returns when state is live. retry_after (seconds) is null while live; while down it is the time left until until (5–300 s) or 30 s (maintenance) / 10 s (updating). Never cached (Cache-Control: no-store).

Responses

200 — ServiceStatus

json
{
  "state": "updating",
  "message": "Database upgrade",
  "until": "2026-12-01T02:00:00Z",
  "retry_after": 120
}

curl example

bash
curl -X GET 'http://127.0.0.1:8010/api/status' \
  -H 'Accept: application/json'

Try it in the console