Skip to main content
GET
/
api
/
chat-history
/
conversation
Get conversation
curl --request GET \
  --url https://www.memoryplugin.com/api/chat-history/conversation \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "title": "<string>",
  "messages": [
    {
      "message_index": 123,
      "sender": "human",
      "text": "<string>",
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "platformConversationId": "<string>",
  "sourceId": "<string>",
  "tokenCount": 123
}

Overview

Retrieve a specific conversation with all its messages. Use the conversationId from the list or search endpoints.

Example

curl "https://www.memoryplugin.com/api/chat-history/conversation?conversationId=abc-123" \
  -H "Authorization: Bearer YOUR_API_KEY"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

conversationId
string
required

The internal conversation ID (returned from list or search endpoints).

Response

Conversation with messages

id
string

Internal conversation ID.

title
string

Conversation title.

messages
object[]
total
integer

Total number of messages.

platformConversationId
string

The original platform conversation ID.

sourceId
string

Platform identifier.

tokenCount
integer

Total tokens in the conversation.