Skip to main content
GET
/
api
/
partner
/
v1
/
analytics
/
workspace-suggestions
curl --request GET \
  --url https://www.genviral.io/api/partner/v1/analytics/workspace-suggestions \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "code": 200,
  "message": "Analytics workspace suggestions retrieved",
  "data": [
    {
      "workspaceId": "bbf64a28-a2fd-48f4-88ef-bf7480f18402",
      "workspaceName": "Archived Brand Workspace",
      "totalItems": 12,
      "isPersonal": false
    }
  ]
}
Returns cross-scope suggestions for analytics account ownership (same behavior as the internal workspace-suggestions endpoint used in the UI).

Response

Each item includes:
workspaceId
string | null
Suggested workspace ID (null for personal scope).
workspaceName
string
Workspace display name (or Personal).
totalItems
number
Number of tracked analytics targets in that scope.
isPersonal
boolean
Whether this suggestion points to personal scope.
curl --request GET \
  --url https://www.genviral.io/api/partner/v1/analytics/workspace-suggestions \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "code": 200,
  "message": "Analytics workspace suggestions retrieved",
  "data": [
    {
      "workspaceId": "bbf64a28-a2fd-48f4-88ef-bf7480f18402",
      "workspaceName": "Archived Brand Workspace",
      "totalItems": 12,
      "isPersonal": false
    }
  ]
}

Error Responses

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