---
title: "Mark read or archive a conversation"
description: "PubNio API inbox.conversations.update: mark read or archive a conversation. 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.

# Mark read or archive a conversation

Mark read or archive a conversation with [`PATCH /api/v1/inbox/conversations/{conversationId}`](https://pubnio.com/api/v1/docs#tag/inbox/PATCH/api/v1/inbox/conversations/{conversationId}). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

Local, workspace-shared, and idempotent. The provider is not called.

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

| Body field | Type                     | Required |
| ---------- | ------------------------ | -------- |
| `status`   | `"active"`, `"archived"` | No       |
| `read`     | boolean                  | No       |

## Response

- HTTP 200: `InboxConversation` with `id`, `workspaceId`, `accountId`, `provider`, `participant`, `folder`, `status`, `unreadCount`, `lastMessageAt`, `lastInboundAt`, `lastOutboundAt`, `lastMessagePreview`, `providerUrl`, `lastReadAt`, `archivedAt`, `replyWindow`, `freshness`, `createdAt`.
  - `provider`: `bluesky`, `facebook`, `instagram`, `linkedin`, `pinterest`, `reddit`, `snapchat`, `tiktok`, `threads`, `x`, `youtube`, `google_business`, `meta_ads`, `google_ads`, `reddit_ads`, `pinterest_ads`, `tiktok_ads`, `linkedin_ads`, `snapchat_ads`, `amazon_ads`, `openai_ads`
  - `folder`: `inbox`, `message_request`, `spam`, `other`
  - `status`: `active`, `archived`

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

## Examples

### TypeScript

```ts
const conversation = await workspace.inbox.updateConversation(conversationId, {
  read: true,
});
```

### Python

```python
conversation = workspace.inbox.update_conversation(conversation_id, read=True)
```

### cURL

```sh
curl -X PATCH "https://pubnio.com/api/v1/inbox/conversations/$CONVERSATION_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"read":true}'
```

### CLI

```sh
pnio inbox conversations update "$CONVERSATION_ID" --read
```

### MCP execute

```js
async () => {
  const conversationId = "<conversationId>";
  const response = await codemode.request({
    method: "PATCH",
    path: `/api/v1/inbox/conversations/${conversationId}`,
    query: { workspaceId: codemode.workspaceId },
    body: { read: true },
  });
  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

No key, so a retried `PATCH` is not deduplicated. Read the current state before you 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-conversations-update/index.mdx
