Skip to content

Read the analytics metric catalog and provider support

PubNio API analytics.capabilities.get: read the analytics metric catalog and provider support. Request fields, examples in five clients, errors, and idempotency.

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: AnalyticsCapabilities with metrics, 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 get
async () => {
  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

Type to search…

↑↓ navigate↵ selectEsc close