First request

The example uses the portal session. Standalone REST access remains open. MCP OAuth with PKCE is documented as Preview.

Access

The example uses the portal session. Standalone REST access remains open. MCP OAuth with PKCE is documented as Preview.

Request

The dashboard endpoint accepts range=open, 24h, 7d, or 30d. The default open applies when the parameter is absent or invalid.

GET /api/v1/dashboard
curl -i 'https://portal.rfi-irfos.com/api/v1/dashboard?range=7d' \
  -H "Cookie: $PORTAL_SESSION_COOKIE"

The session variable in examples is a placeholder. The browser supplies the real session cookie.

Response

200 application/json

200 · Example response
{
  "data": {
    "openFindings": 0,
    "openIncidents": 0,
    "activeInvestigations": 0,
    "totalInvestigations": 0,
    "assets": 0,
    "locatedAssets": 0,
    "severity": {
      "critical": 0,
      "high": 0,
      "medium": 0,
      "low": 0,
      "informational": 0
    },
    "incidentSeverity": {
      "critical": 0,
      "high": 0,
      "medium": 0,
      "low": 0,
      "informational": 0
    },
    "findingsSeries": [],
    "trend": null,
    "complianceScore": {
      "percent": null,
      "satisfied": 0,
      "applicable": 0,
      "assessed": 0,
      "total": 0
    },
    "mttr": {
      "medianHours": null,
      "sample": 0,
      "weeks": []
    },
    "geoMarkers": [],
    "range": "open",
    "generatedAt": "2026-01-01T00:00:00.000Z"
  },
  "meta": {
    "demo": true,
    "internalPreview": false,
    "role": "analyst",
    "organizationName": "Example workspace"
  }
}

The handler returns JSON. Response fields are defined in the linked route source.

Local index↑ ↓ · Enter · Esc