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

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Read an analytics refresh status

Read an analytics refresh status with [`GET /api/v1/analytics/refreshes/{refreshId}`](https://pubnio.com/api/v1/docs#tag/analytics/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](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const refresh = await workspace.analytics.refreshStatus(refreshId);
```

### Python

```python
refresh = workspace.analytics.get_refresh(refresh_id)
```

### cURL

```sh
curl "https://pubnio.com/api/v1/analytics/refreshes/$REFRESH_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio analytics refreshes get "$REFRESH_ID"
```

### MCP execute

```js
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](https://pubnio.com/docs/reference/#analytics) and [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Analytics operations](https://pubnio.com/docs/reference/#analytics)

Source: https://pubnio.com/docs/reference/analytics-refreshes-get/index.mdx
