Skip to main content
GET
/
conversations
/
{id}
JavaScript
import Reminix from '@reminix/sdk';

const client = new Reminix({
  apiKey: process.env['REMINIX_API_KEY'], // This is the default and can be omitted
});

const conversation = await client.conversations.retrieve('x');

console.log(conversation);
{
  "id": "conv_abc123",
  "projectId": "proj_xyz",
  "agentName": "support-bot",
  "identity": {
    "user_id": "user_123"
  },
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T11:00:00Z",
  "messages": [
    {
      "id": "msg_1",
      "conversationId": "conv_abc123",
      "role": "user",
      "content": "Hello!",
      "toolCalls": null,
      "toolCallId": null,
      "name": null,
      "createdAt": "2024-01-15T10:30:00Z"
    },
    {
      "id": "msg_2",
      "conversationId": "conv_abc123",
      "role": "assistant",
      "content": "Hi! How can I help you today?",
      "toolCalls": null,
      "toolCallId": null,
      "name": null,
      "createdAt": "2024-01-15T10:30:01Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key or Personal Access Token (PAT). When using PAT, include X-Project header.

Path Parameters

id
string
required

Conversation ID

Minimum string length: 1

Response

Conversation details with messages

id
string
required

Unique conversation ID

projectId
string
required

Project ID

agentName
string
required

Agent name

identity
object
required

Identity fields for conversation scoping

createdAt
string
required

When the conversation was created

updatedAt
string
required

When the conversation was last updated

messages
object[]
required

Conversation messages