---
title: "Conversations"
description: "List and manage conversations with @wazapin/sdk."
---

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

# Conversations

Assign agents, close threads, and pull message history for a customer chat — `wazapin.conversations` covers inbox workflows beyond sending messages.

```ts
const { data } = await wazapin.conversations.list({ limit: 20 });
```

## Get one conversation

```ts
const conversation = await wazapin.conversations.get("conv_123");
```

## List messages in a conversation

```ts
const messages = await wazapin.messages.listByConversation("conv_123", {
  limit: 50,
});
```

## Conversation actions

```ts
await wazapin.conversations.assign("conv_123", {
  agent_id: "user_123",
});

await wazapin.conversations.close("conv_123");
await wazapin.conversations.reopen("conv_123");
await wazapin.conversations.markRead("conv_123");
```

## Labels and activity

```ts
await wazapin.conversations.addLabel("conv_123", {
  label_id: "label_123",
});

await wazapin.conversations.removeLabel("conv_123", "label_123");

const events = await wazapin.conversations.listEvents("conv_123");
const comments = await wazapin.conversations.listComments("conv_123");
```

Source: https://docs.wazapin.id/sdk/conversations/index.mdx
