# Operator actions and my pause

Actions on an Open Channel dialog on behalf of the employee the key belongs to: skip a dialog, transfer it, mark the client as spam, finish another operator's dialog. This section also covers reading, starting and stopping your own operator pause.

Bitrix24 API: `imopenlines.operator.*`
Scope: `imopenlines`

## On whose behalf the action runs

These methods take no employee parameter. The action and the pause apply to the employee the call runs as:

| Authorization | Employee |
|---|---|
| Personal key (`X-Api-Key: YOUR_API_KEY`) | The key owner |
| OAuth application (`X-Api-Key: YOUR_APP_KEY` + `Authorization: Bearer USER_SESSION_TOKEN`) | The user whose session is passed in `Authorization` |

Permissions for the action are checked against this employee. Every method except reading the pause requires a key with write access.

## Chat ID

The methods take `chatId`, the numeric ID of the Open Channel chat, for example `5255`. It is not a `dialogId` such as `chat5255` and not a `sessionId`. One chat goes through several sessions, and the action applies to the chat's current session.

Where to get `chatId`:

- The `chatId` field in the [`POST /v1/openlines/sessions/search`](/docs/openlines/sessions/search) response.
- [`POST /v1/openlines/sessions/open`](/docs/openlines/sessions/open) — by the client's code in the connector.
- [`GET /v1/openlines/crm/chats`](/docs/openlines/crm-chats) — by a CRM card.

## Typical scenario

1. Find the client's chat: [`POST /v1/openlines/sessions/search`](/docs/openlines/sessions/search) by channel, or [`POST /v1/openlines/sessions/open`](/docs/openlines/sessions/open) by the client's code.
2. Take the dialog yourself: [`POST /v1/openlines/sessions/start`](/docs/openlines/sessions/start). The employee the call runs as becomes the session operator.
3. Transfer the dialog to a colleague or to the channel queue: [`POST /v1/openlines/operator/transfer`](/docs/openlines/operator/transfer).
4. Finish a dialog that another operator is handling: [`POST /v1/openlines/operator/finish-another`](/docs/openlines/operator/finish-another).

## Operations

- [Skip a dialog](./operator/skip.md) — `POST /v1/openlines/operator/skip`
- [Mark the client as spam](./operator/spam.md) — `POST /v1/openlines/operator/spam`
- [Transfer a dialog](./operator/transfer.md) — `POST /v1/openlines/operator/transfer`
- [Finish another operator's dialog](./operator/finish-another.md) — `POST /v1/openlines/operator/finish-another`
- [Read my pause](./operator/pause.md) — `GET /v1/openlines/operator/pause`
- [Start my pause](./operator/pause-start.md) — `POST /v1/openlines/operator/pause`
- [Stop my pause](./operator/pause-stop.md) — `DELETE /v1/openlines/operator/pause`

## See also

- [Open Channels](/docs/openlines)
- [Session search](/docs/openlines/sessions/search)
- [Chats by CRM card](/docs/openlines/crm-chats)
- [Open Channel configurations](/docs/openlines/config)
