---
title: "Pin a chat"
method: POST
path: "/messenger/v1/chats/{id}/pin"
tags: ["chats"]
---

# Pin a chat

`POST /messenger/v1/chats/{id}/pin`

## Request

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

Pins a chat to the top of the chat list for easy access. Pinned chats appear before unpinned ones.

## Path parameters

- `id` string, required

## Response `200`

Id of pinned chat

- string

---

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