Pin or unpin an agent chat
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.
/agent-chats/{chatId}/pinAuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredchatIdstringrequiredfieldsToReturnstringComma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestringAdvanced override. Omit for the endpoint compact default. Use full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
compactfullLT-Response-ShapestringAdvanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
fullapplication/jsonpinnedbooleanrequiredWhether the chat should be pinned
pinnedAtobject | nullsuccessbooleanrequiredUnauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Chat not found