curl -X PATCH https://api.vouchmark.com/v1/chat/chat_aBcD.../title \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"title": "TIN reinstatement plan"}'
{
"message": "Chat title updated successfully",
"chat": {
"id": "chat_aBcD...",
"title": "TIN reinstatement plan"
}
}
Vouch AI
Rename chat
Rename a Vouch AI conversation.
PATCH
/
v1
/
chat
/
{chatId}
/
title
curl -X PATCH https://api.vouchmark.com/v1/chat/chat_aBcD.../title \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"title": "TIN reinstatement plan"}'
{
"message": "Chat title updated successfully",
"chat": {
"id": "chat_aBcD...",
"title": "TIN reinstatement plan"
}
}
Updates a chat’s title. Only the chat’s owner can rename it.
Returns
Vouch AI endpoints require a positive wallet balance.
Path parameters
string
required
The chat session ID.
Body
string
required
The new title. Cannot be empty.
curl -X PATCH https://api.vouchmark.com/v1/chat/chat_aBcD.../title \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"title": "TIN reinstatement plan"}'
{
"message": "Chat title updated successfully",
"chat": {
"id": "chat_aBcD...",
"title": "TIN reinstatement plan"
}
}
400 if title is empty, or 404 if the chat does not exist or is not yours.