Skip to main content
GET
/
api
/
v1
/
chat-history
/
chats
/
{chat_id}
Get Chat
curl --request GET \
  --url https://api.mor.org/api/v1/chat-history/chats/{chat_id} \
  --header 'Authorization: <authorization>'
{
  "id": "<string>",
  "title": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "messages": [
    {
      "id": "<string>",
      "role": "<string>",
      "content": "<string>",
      "sequence": 123,
      "created_at": "<string>",
      "tokens": 123
    }
  ]
}
Get a specific chat with all messages. Returns the complete chat conversation including all messages in chronological order.

Headers

Authorization
string
required
Bearer token (JWT) from OAuth2 login

Path Parameters

chat_id
string
required
The ID of the chat to retrieve

Response

id
string
Unique identifier for the chat
title
string
The chat title
created_at
string
ISO 8601 timestamp when created
updated_at
string
ISO 8601 timestamp when last updated
messages
array
Array of message objects in chronological order
Complete Context: This endpoint returns the full conversation history, making it ideal for loading a chat into your UI or analyzing conversation patterns.
You can only access chats that belong to your account. Attempting to access another user’s chat will result in a 404 error.