---
title: "List DM conversations newest first"
description: "PubNio API inbox.conversations.list: list DM conversations newest first. 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 DM conversations newest first

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

## Request

Filter by account, provider, local status, folder, unread state, or search text. Cursors are opaque and stable.

| Parameter     | In    | Type                                                | Required |
| ------------- | ----- | --------------------------------------------------- | -------- |
| `workspaceId` | query | UUID                                                | Yes      |
| `accountId`   | query | UUID                                                | No       |
| `provider`    | query | one of 21 strings                                   | No       |
| `status`      | query | `"active"`, `"archived"`                            | No       |
| `folder`      | query | `"inbox"`, `"message_request"`, `"spam"`, `"other"` | No       |
| `unread`      | query | `"true"`, `"false"`                                 | No       |
| `search`      | query | string                                              | No       |
| `cursor`      | query | string                                              | No       |
| `limit`       | query | string                                              | No       |

## Response

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

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

## Examples

### TypeScript

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

### Python

```python
conversations = workspace.inbox.list_conversations()
```

### cURL

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

### CLI

```sh
pnio inbox conversations list --unread
```

### MCP execute

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