Read the analytics metric catalog and provider support with GET /api/v1/workspaces/{workspaceId}/analytics/capabilities. Requires an API key with the read scope or a signed-in workspace member.
Request
Lists every canonical metric and supported provider without a provider call, plus each account’s scope and access state.
| Parameter | In | Type | Required |
|---|---|---|---|
workspaceId |
path | UUID | Yes |
Response
- HTTP 200:
AnalyticsCapabilitieswithmetrics,providers,accounts,checkedAt.
The OpenAPI document has each field’s type.
Examples
const catalog = await workspace.analytics.capabilities();catalog = workspace.analytics.get_capabilities()curl "https://pubnio.com/api/v1/workspaces/$WORKSPACE_ID/analytics/capabilities" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio analytics capabilities getasync () => {
const response = await codemode.request({
method: "GET",
path: `/api/v1/workspaces/${codemode.workspaceId}/analytics/capabilities`,
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems every Analytics operation and most operations declare.
Idempotency
None needed: a read is safe to retry.
Limits
- Field lengths and ranges are in the OpenAPI document.