---
title: "List comment threads with counts"
description: "PubNio API inbox.comments.list: list comment threads with 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.

# List comment threads with counts

List comment threads with counts with [`GET /api/v1/inbox/comments`](https://pubnio.com/api/v1/docs#tag/inbox/GET/api/v1/inbox/comments). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

Filter by account, PubNio post, provider post ID, or unread state.

| Parameter        | In    | Type                | Required |
| ---------------- | ----- | ------------------- | -------- |
| `workspaceId`    | query | UUID                | Yes      |
| `accountId`      | query | UUID                | No       |
| `postId`         | query | UUID                | No       |
| `providerPostId` | query | string              | No       |
| `unread`         | query | `"true"`, `"false"` | No       |
| `cursor`         | query | string              | No       |
| `limit`          | query | string              | No       |

## Response

- HTTP 200: `InboxCommentThreadList` with `data`, `hasMore`, `nextCursor`.

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

## Examples

### TypeScript

```ts
const threads = await workspace.inbox.comments({ unread: true });
```

### Python

```python
threads = workspace.inbox.list_comments()
```

### cURL

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

### CLI

```sh
pnio inbox comments list --unread
```

### MCP execute

```js
async () => {
  const response = await codemode.request({
    method: "GET",
    path: "/api/v1/inbox/comments",
    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

- Up to 100 items a page; pass `nextCursor` back as `cursor`. See [Pagination](https://pubnio.com/docs/concepts/pagination/).

## Related

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

Source: https://pubnio.com/docs/reference/inbox-comments-list/index.mdx
