---
title: "Read a sync run and current inbox counts"
description: "PubNio API inbox.sync.get: read a sync run and current inbox counts. 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 a sync run and current inbox counts

Read a sync run and current inbox counts with [`GET /api/v1/inbox/sync/{syncRunId}`](https://pubnio.com/api/v1/docs#tag/inbox/GET/api/v1/inbox/sync/{syncRunId}). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `syncRunId`   | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

## Response

- HTTP 200: `InboxSyncStatus` with `syncRun`, `counts`.

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const run = await workspace.inbox.sync(syncRunId);
```

### Python

```python
run = workspace.inbox.get_sync(sync_run_id)
```

### cURL

```sh
curl "https://pubnio.com/api/v1/inbox/sync/$SYNC_RUN_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio inbox sync status "$SYNC_RUN_ID"
```

### MCP execute

```js
async () => {
  const syncRunId = "<syncRunId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/inbox/sync/${syncRunId}`,
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [every Inbox operation](https://pubnio.com/docs/reference/#inbox) 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

- [Inbox operations](https://pubnio.com/docs/reference/#inbox)

Source: https://pubnio.com/docs/reference/inbox-sync-get/index.mdx
