Skip to main content
POST
/
api
/
v1
/
chat-history
/
chats
Create Chat
curl --request POST \
  --url https://api.mor.org/api/v1/chat-history/chats \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>"
}'
{
  "id": "<string>",
  "title": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "message_count": 123
}
Create a new chat conversation. Chat history allows you to store and organize your conversations for later retrieval. This is useful for building chat UIs and maintaining conversation context.

Headers

Authorization
string
required
Bearer token (JWT) from OAuth2 login

Body

title
string
required
Chat title (max 200 characters)

Response

id
string
Unique identifier for the chat
title
string
The chat title
created_at
string
ISO 8601 timestamp when the chat was created
updated_at
string
ISO 8601 timestamp when the chat was last updated
message_count
integer
Number of messages in the chat (initially 0)
Chat Organization: Use descriptive titles to easily identify and organize your conversations. The title can be updated later using the update endpoint.
After creating a chat, use the returned id to add messages to the conversation with the /api/v1/chat-history/chats/{chat_id}/messages endpoint.