Skip to main content
Rename an existing chat conversation.
Authorization
string
required
Bearer token obtained from the authenticate endpoint.
chat_id
string
required
Unique identifier of the chat to update.
title
string
required
New title for the chat.

Response

id
string
required
Unique identifier for the chat.
title
string
required
Updated title.
preview
string
Preview of the first message.
timestamp
string
required
ISO 8601 timestamp of the most recent activity.
curl -X PUT https://api.trellis.sh/v1/chats/chat_abc123 \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "Q4 2025 Revenue Deep Dive"}'
{
  "id": "chat_abc123",
  "title": "Q4 2025 Revenue Deep Dive",
  "preview": "Show me the monthly revenue trends...",
  "timestamp": "2025-01-11T14:30:00Z"
}