# st.syncInbox

This action enables whole-inbox monitoring so you can poll every incoming conversation without syncing each person individually.

> 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 enables **whole-inbox monitoring** for your account so you can [poll the inbox](/docs/monitoring-inbox) for messages across every conversation.

:::surface node,python
In the SDK this is the `syncInbox` 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 inbox sync` – the command is below, under [Parameters](#parameters).
:::

> 💡 **Recommended first step for reading messages.** See the [Messaging overview](/docs/messaging-overview) for how it fits with the other messaging tools.

`st.syncInbox` starts tracking **all** threads in your inbox. Run it once per account. After it succeeds, new messages become available through the [inbox polling endpoint](/docs/monitoring-inbox) — no need to sync each conversation individually.

> 💡 Only messages that arrive **after** inbox sync is enabled are captured. To get a person's earlier history, load it once with [`st.syncConversation`](/docs/action-st-sync-conversation) and read it through [inbox polling with `personUrl`](/docs/monitoring-inbox#polling-one-person).

This action only switches monitoring on: it records the setting and returns. It does not browse your inbox and does not open anyone's profile. The messages themselves are picked up afterwards by a sync that runs periodically, so the first ones appear on the next sync rather than the moment the action completes.

> **Note:** When that sync finds new messages in a thread – including messages you send yourself – it opens the profile page of the other participant in that thread to resolve their public URL – but only when Linked API does not already know it, so a person is visited once, which is what fills `personPublicUrl` on the messages you [poll](/docs/monitoring-inbox) or receive by [webhook](/docs/webhooks). Those visits are made from your own account, and such a visit is visible to the person whose profile is opened.

## Constraints

> ⏺️ **Root Start:** allowed.

> ⬆️ **Parent Actions:** N/A.

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

## Parameters

```json tab=HTTP
{
  "actionType": "st.syncInbox",
  "label": "enableInbox"
}
```

```typescript tab=Node
const workflow = await linkedapi.syncInbox.execute({});

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

```python tab=Python
workflow = linkedapi.sync_inbox.execute()

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

```bash tab=CLI
linkedin inbox sync
```

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

:::surface cli
In the CLI this is `linkedin inbox sync`:

```bash
linkedin inbox sync         # standard inbox
linkedin inbox sync --nv    # Sales Navigator inbox
```

| Flag | Type | Description |
| --- | --- | --- |
| `--nv` | bool | Enable monitoring for the Sales Navigator inbox instead of the standard one |

> Only messages that arrive after this runs are captured. To get a person's earlier history, run `message get <person-url>` once, then read the whole conversation with `inbox get --person <person-url>`.
:::

- `label` (optional) – custom label for tracking this action in workflow completion.

This action takes no other parameters.

## Result options

**Successful enabling:**

```json
{
  "actionType": "st.syncInbox",
  "label": "enableInbox",
  "success": true
}
```

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