Skip to main content
GET
Returns tracked analytics targets for the authenticated key scope (workspace or personal).

Behavior

  • Returns all targets scoped to the API key.
  • Includes last snapshot/refresh status and free_refresh_available.
  • This dataset is the source of account-level stats shown in the internal analytics UI.
Use Create Analytics Target to add a new account to track.

Response

string | null
Workspace tied to the API key (null for personal-scope keys).
array
Analytics targets with status metadata and last snapshot totals. Each row includes canonical id and a backward-compatible target_id alias.

Error Responses

  • 401/403 - authentication failed or key lacks workspace access
  • 500 - unexpected database/analytics service error
All error responses from analytics endpoints include an error_code field.