# st.manageConversation

This action allows you to manage a conversation thread, such as archiving, starring, or muting it.

> The API Reference is also the SDK and CLI reference. Consecutive code fences marked `tab=HTTP`, `tab=Node`, `tab=Python` and `tab=CLI` are the same call on each surface (a fence marked `tab=HTTP,CLI` is the same text for both), and a block between `:::surface <names>` and `:::` applies only to the surfaces it names. Identifiers in the text are written as in Node and in HTTP JSON (camelCase); the Python SDK spells methods, parameters and result attributes in snake_case (`sendMessage` → `send_message`, `reconnectionLink` → `reconnection_link`), while names inside HTTP JSON stay camelCase.

This action allows you to manage a conversation thread — archive, star, or mute it — by its `threadId`.

:::surface node,python
In the SDK this is the `manageConversation` method. It takes the parameters below except `label` and `then`, which exist only in workflow JSON. It returns no `data`: a failed action comes back in `errors`, with one of the error types below.
:::

:::surface cli
In the CLI this is `linkedin message manage` – the command is below, under [Parameters](#parameters).
:::

## Constraints

> ⏺️ **Root Start:** allowed, when `threadId` parameter is provided.

> ⬆️ **Parent Actions:** [st.sendMessage](/docs/action-st-send-message).

> ⬇️ **Child Actions:** N/A.

## Parameters

```json tab=HTTP
{
  "actionType": "st.manageConversation",
  "label": "thread1",
  "threadId": "2-Zjhm...",
  "operation": "archive"
}
```

```typescript tab=Node
const workflow = await linkedapi.manageConversation.execute({
  threadId: "2-Zjhm...",
  operation: "archive"
});

const { errors } = await linkedapi.manageConversation.result(workflow.workflowId);
```

```python tab=Python
from linkedapi import ManageConversationParams

workflow = linkedapi.manage_conversation.execute(
    ManageConversationParams(
        thread_id="2-Zjhm...",
        operation="archive",
    )
)

result = linkedapi.manage_conversation.result(workflow.workflow_id)
```

```bash tab=CLI
linkedin message manage 2-Zjhm... archive
```

In AI assistants, the MCP server runs this action as the `manage_conversation` tool.

:::surface cli
In the CLI this is `linkedin message manage`:

```bash
linkedin message manage <thread-id> <operation>
```

| Arg | Required | Description |
| --- | --- | --- |
| `thread-id` | yes | Conversation thread identifier, as returned by `inbox get` / `message get`, or the `<id>` in `linkedin.com/messaging/thread/<id>` of an open conversation |
| `operation` | yes | One of `archive`, `unarchive`, `star`, `unstar`, `mute`, `unmute` |
:::

- `label` (optional) – custom label for tracking this action in workflow completion.
- `threadId` (required for root start, forbidden for child start) – identifier of the conversation thread to manage, as returned by [inbox polling](/docs/monitoring-inbox). You can also read it from the address bar of an open conversation — it is the `<id>` in `linkedin.com/messaging/thread/<id>`. When run as a child of [st.sendMessage](/docs/action-st-send-message), the thread is inherited from the parent send and this parameter must be omitted.
- `operation` – operation to apply to the thread. One of:
  - `archive` / `unarchive` – archive or unarchive the conversation.
  - `star` / `unstar` – star or unstar the conversation.
  - `mute` / `unmute` – mute or unmute the conversation.

## Result options

1. **Successful operation:**

```json
{
  "actionType": "st.manageConversation",
  "label": "thread1",
  "success": true
}
```

- `label` – included only if specified in the action parameters.

2. **Failed operation:**

```json
{
  "actionType": "st.manageConversation",
  "label": "thread1",
  "success": false,
  "error": {
    "type": "threadNotFound",
    "message": "The provided thread identifier does not match an existing conversation."
  }
}
```

- `label` – included only if specified in the action parameters.
- `error.type` – enum with the following possible values:
  - `threadNotFound` – provided `threadId` does not match an existing conversation.
