---
title: "Handle CRM letter binding"
method: POST
path: "/crm/v1/crm_letters"
tags: ["letters"]
---

# Handle CRM letter binding

`POST /crm/v1/crm_letters`

## Request

- Base URL: `https://{domain}.uspacy.ua`
- URL: `https://{domain}.uspacy.ua/crm/v1/crm_letters`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/uspacy/apis/crm-service-2/docs/crm/v1/crm_letters/post.ts> (a function with typed inputs; its response is checked against the schema)

Binds an email/letter to a CRM entity for tracking correspondence.

## Request body

- object
  - `entity_type` string: Target entity type
  - `entity_id` integer: Target entity ID
  - `letter_id` integer: Letter/email ID from the mail service

## Response `200`

OK

## Other responses

- `401`: Access token is missing or invalid
- `422`: Validation error response

---

[API](https://skmtc.dev/uspacy/apis/crm-service-2.md) - [All operations](https://skmtc.dev/uspacy/apis/crm-service-2/llms.txt) - [OpenAPI document](https://skmtc.dev/uspacy/apis/crm-service-2/revisions/f80578d43845?raw)
