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
}
]
}
Analytics
Get Analytics Workspace Suggestions
List other workspace/personal analytics scopes with available tracked accounts
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:string | null
Suggested workspace ID (
null for personal scope).string
Workspace display name (or
Personal).number
Number of tracked analytics targets in that scope.
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 access500- unexpected workspace suggestion lookup error
error_code field.