Skip to content

Read an analytics refresh status

PubNio API analytics.refreshes.get: read an analytics refresh status. Request fields, examples in five clients, errors, and idempotency.

Read an analytics refresh status with GET /api/v1/analytics/refreshes/{refreshId}. Requires an API key with the read scope or a signed-in workspace member.

Request

Parameter In Type Required
refreshId path UUID Yes
workspaceId query UUID Yes

Response

  • HTTP 200: AnalyticsRefresh with id, workspaceId, subjectKind, subjectId, status, nextDueAt, lastSuccessAt, errorKind, createdAt.
    • status: queued, running, succeeded, failed, paused, deleted, inaccessible

The OpenAPI document has each field’s type.

Examples

const refresh = await workspace.analytics.refreshStatus(refreshId);
refresh = workspace.analytics.get_refresh(refresh_id)
curl "https://pubnio.com/api/v1/analytics/refreshes/$REFRESH_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
pnio analytics refreshes get "$REFRESH_ID"
async () => {
  const refreshId = "<refreshId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/analytics/refreshes/${refreshId}`,
    query: { workspaceId: codemode.workspaceId },
  });
  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