---
search:
  tags:
    - agent-chats
    - PATCH
seo:
  description: >-
    Pins or unpins an in-app agent chat for the authenticated user. Pin…
    Reference for the PATCH /agent-chats/{chatId}/pin endpoint in the Leadtime
    Public API API.
sidebar:
  badge: PATCH
  label: Pin or unpin an agent chat
title: Pin or unpin an agent chat
type: openapi-operation
---
Pins or unpins an in-app agent chat for the authenticated user. Pin state is per-user and only affects the caller's chat history. Requires `agents.chat` in addition to `api:write`.

<Operation source="api-reference" id="agentchatscontroller-pinchat" />
