Get Dashboard

GET /api/v1/obs/dashboard

Aggregated data behind the console home dashboard (returns the tech or business view depending on the account's view mode). For programmatic reconciliation prefer Query Usage and the export endpoints — this endpoint primarily serves the console UI.

Auth: this endpoint belongs to the console backend API (base URL https://portal.aiin1.ai — note, not api.portal.aiin1.ai). It requires an access_token obtained by logging in with a console account (valid 15 minutes); the sk-nex- API token does not work here. See Billing Reconciliation & Automated Usage Sync for the login flow.

Request parameters

Param In Type Required Description
range_days query integer no Stats over the last N days (default 7)

Example

curl "https://portal.aiin1.ai/api/v1/obs/dashboard?range_days=30" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Response

Field Type Required Description
view_mode string yes The account's view mode: tech / business
tech object | null no Tech-view data (returned when view_mode=tech)
business object | null no Business-view data (returned when view_mode=business)
data_freshness string yes Data freshness timestamp