---
title: "Найти контакт по внешнему ID"
method: GET
path: "/api-v2/crm/contacts/by-external-id"
tags: ["CRM внешние идентификаторы"]
---

# Найти контакт по внешнему ID

`GET /api-v2/crm/contacts/by-external-id`

## Request

- Base URL: `https://api-docs.yougile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.yougile.com/api-v2/crm/contacts/by-external-id`
- Auth: HTTP bearer

Найти контакт CRM по идентификатору внешнего мессенджера

## Query parameters

- `provider` string, required
- `chatId` string, required

## Response `200`

Контакт найден

- CrmDirectoryEntryDto
  - `id` string, required: ID сущности
  - `title` string, required: Название
  - `deleted` boolean: Статус удаления записи
  - `timestamp` number: Время создания
  - `createdBy` string: ID пользователя, создавшего запись
  - `fields` object: Дополнительные поля

---

[API](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0.md) - [All operations](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0/revisions/9452cba35716?raw)
