Guides

Client Status & Maintenance

The server clock, supported app versions and maintenance windows in one anonymous read.

GET /api/v1/public/client-status is what any client should read before it acts. It returns the server's clock, the Panoptes staff app's supported versions, and whether maintenance is coming or in force.

  • No credential. Send nothing. A key or bearer, if sent, is ignored.
  • Never refused. It answers during maintenance and to outdated apps, and it never returns 422.
  • Console envelope. It answers { success, data }, not the partner { ok, data } envelope, even though it lives under /api/v1/public.
  • Never cached. It is sent with Cache-Control: no-store.
curl https://staging-api.panoptesos.com/api/v1/public/client-status

The response

{
  "success": true,
  "data": {
    "serverTime": "2026-10-09T18:02:11Z",
    "utcOffsetMinutes": 180,
    "timeZone": "Asia/Baghdad",
    "staffApp": {
      "platform": "android",
      "evaluation": {
        "currentVersion": "1.3.0+21",
        "updateRequired": false,
        "updateAvailable": true
      },
      "platforms": {
        "android": {
          "minVersion": "1.2.0",
          "latestVersion": "1.4.0",
          "storeUrl": "https://play.google.com/store/apps/details?id=com.panoptesos.staff"
        },
        "ios": { "minVersion": "0.0.0", "latestVersion": "0.0.0" },
        "windows": { "minVersion": "0.0.0", "latestVersion": "0.0.0" },
        "web": { "minVersion": "0.0.0", "latestVersion": "0.0.0" }
      }
    },
    "maintenance": {
      "state": "scheduled",
      "next": {
        "id": "0192f6b2-6d3e-7c41-8a55-3f1c0e9a1b22",
        "mode": "read_only",
        "startsAt": "2026-10-10T00:00:00Z",
        "endsAt": "2026-10-10T01:00:00Z",
        "messageAr": "صيانة مجدولة للخادم من 3:00 إلى 4:00 فجراً.",
        "messageEn": "Scheduled server maintenance 03:00–04:00 (Baghdad)."
      }
    }
  }
}

Fields that have no value are omitted, not sent as null.

FieldMeaning
serverTimeThe server's UTC clock. Use it to detect a skewed device clock
utcOffsetMinutes, timeZoneThe business time zone: Asia/Baghdad, fixed UTC+3, no daylight saving
staffApp.platforms.<p>Per platform (android, ios, windows, web): the minimum version, the latest release, and the store link (never on web)
staffApp.platform, staffApp.evaluationPresent only when you say which platform and version you are (below)
maintenance.statenone, scheduled (a window is announced) or active (a window is in force now)
maintenance.currentThe window in force, with retryAfterSeconds when it refuses requests
maintenance.nextThe earliest window starting later, up to 14 days ahead

Evaluating a version

Pass platform and version as query parameters, or send the headers X-Client-Platform and X-App-Version. The query parameters win:

curl "https://staging-api.panoptesos.com/api/v1/public/client-status?platform=android&version=1.3.0%2B21"

Versions are MAJOR.MINOR.PATCH with an optional +BUILD, compared numerically. A missing build counts as 0. In the response:

  • updateRequired is true when your version is below minVersion. Every gated request from that build answers 426.
  • updateAvailable is true when you are not below the minimum but are below latestVersion.

An unknown platform or an unparseable version is not an error. evaluation is simply left out.

Maintenance windows

A window has one of three modes:

ModeWhat it refuses
noticeNothing. It is an announcement only
read_onlyPOST, PUT, PATCH and DELETE. Signing in, refreshing, signing out and /api/v1/console/me/** still work
fullEvery request, sign-in and refresh included
  • Every client is affected. A window applies to the console, guest, public, media, MCP and offline-drain surfaces for every client, dashboards included.
  • A refused request answers 503 with errors.code: ["Maintenance"], the window in data, and Retry-After (see Responses & Errors). It is never a 401, so keep your tokens.
  • Polling. Read this endpoint on start, on resume, every minute while a window is within the hour or in force, and right after any maintenance refusal. startsAt and endsAt are UTC, so show them in Baghdad time (UTC+3).
  • Queueing. During read_only, keep reads working and queue writes until endsAt.

Upgrade required (426)

Only the Panoptes staff app is version-gated: requests that send X-Client: panoptes-staff, X-Client-Platform and an X-App-Version below that platform's minVersion. Integrations and API keys are never gated. The 426 body carries the floor, the latest release and the store link in data. Like a maintenance refusal, it is not a session loss.