ReferenceChat
Update Thread
Update a chat thread.
Path Parameters
thread_id*string
Format
uuidHeader Parameters
authorization?|
X-API-Key?|
Cookie Parameters
vai_token?|
Request Body
application/json
metadata?|
systemPrompt?|
title?|
Response Body
application/json
application/json
curl -X PATCH "https://loading/api/v1/chat/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"createdAt": "2019-08-24T14:15:22Z",
"id": "string",
"lastMessageAt": "2019-08-24T14:15:22Z",
"lastTurnId": "string",
"metadata": {},
"systemPrompt": "string",
"title": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Stream Turn
Start a chat turn and stream the response via SSE. Uses pydantic-ai's native VercelAIAdapter for proper Vercel AI SDK v6 UI Message Stream protocol compliance. The adapter: - Parses the Vercel AI SDK request format automatically - Streams events in the correct protocol format - Handles finish events with usage data Headers: - X-User-Timezone: Optional IANA timezone (e.g., 'America/Denver'). If provided, overrides the user's stored timezone preference. Useful for users who are traveling.
Create Connection
Next Page