---
title: "Привязать диалог к записи CRM"
method: POST
path: "/api/v1/crm/inbox/entities/{entity}/{id}/conversations"
tags: ["CRM inbox"]
---

# Привязать диалог к записи CRM

`POST /api/v1/crm/inbox/entities/{entity}/{id}/conversations`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/crm/inbox/entities/{entity}/{id}/conversations`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://erp.akeda.ru/oauth2/authorize`, token URL `https://erp.akeda.ru/oauth2/token`, scopes: `akeda:delegate`)

Связывает указанный диалог с записью CRM.

## Request body

- CRMInboxLinkConversationInput
  - `conversation_id` string, uuid, required

## Response `201`

Созданная связь

- CRMInboxConversationLink
  - `id` string, uuid, required
  - `conversation_id` string, uuid, required
  - `entity_type` 'lead' | 'deal' | 'customer', required
  - `entity_id` string, uuid, required
  - `created_at` string, date-time, required

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права
- `404`: Запись не найдена или не видима текущему пользователю

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) · [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) · [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/a99574d597cc?raw)
