---
title: "Step 4: Link chat to contact"
method: POST
path: "/api/v4/contacts/chats"
---

# Step 4: Link chat to contact

`POST /api/v4/contacts/chats`

The method allows you to link an existing chat to a contact.

## Headers

- `Content-Type` 'application/json'

## Request body

- object
  - `RAW_BODY` object[]
    - `contact_id` integer — Id of the contact in Kommo
    - `chat_id` string — Chat id in Kommo Chat API

## Response `200`

200

- object
  - `_total_items` integer
  - `_embedded` object
    - `chats` object[]
      - `chat_id` string
      - `contact_id` integer
      - `id` integer
      - `request_id` string

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403

---

[API](https://skmtc.net/kommo/apis/kommo-api-references.md) · [All operations](https://skmtc.net/kommo/apis/kommo-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/kommo-api-references/revisions/f17af4d23c7c/schema)
