Chats belong to the user behind the API key. Another user’s id is 404 CHAT_NOT_FOUND.
Create
POST /api/v1/chats returns 201. This is optional. To send a first message in one call, use POST /api/v1/completions and omit chatId.
Optional. 1–120 characters. Omitted titles get a default.
List
GET /api/v1/chats
Pass nextCursor from the previous page.
Newest first. GET /api/v1/chats/{chatId} returns one chat object.
Delete
DELETE /api/v1/chats/{chatId} returns 204. The row is soft-deleted. A repeat delete of someone else’s chat is 404.