Skip to main content
GET
/
api
/
v1
/
llm
/
conversations
/
{conversation_id}
/
items
/
{item_id}
Typescript (SDK)
import { SDK } from "@meetkai/mka1";

const sdk = new SDK({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await sdk.llm.conversations.getItem({
    conversationId: "conv_abc123",
    itemId: "item_abc123",
  });

  console.log(result);
}

run();
{
  "id": "item_abc123",
  "response_id": "resp_abc123",
  "type": "message",
  "role": "user",
  "content": "What is the weather today?"
}

Authorizations

Authorization
string
header
required

Authenticate with your MKA1 API key at the API gateway: Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, also send X-On-Behalf-Of to identify the end user making the request.

Headers

X-On-Behalf-Of
string

Optional external user identifier for multi-user server-side integrations. Use this when acting on behalf of one of your end users.

Path Parameters

conversation_id
string
required

The ID of the conversation

item_id
string
required

The ID of the item

Response

200 - application/json

OK

A message input item with a role and content. Represents a single turn in the conversation from a user, assistant, system, or developer.

role
enum<string>
required

The role of the message sender (user, assistant, system, or developer).

Available options:
user,
assistant,
system,
developer
content
required

The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio).

id
string
default:msg_aa87e2b1112a455b8deabed784372198
required

The unique ID of the message.

type
any

The item type identifier. Always 'message' for message items.

status
enum<string>

The processing status of this message. Optional - indicates if the message is in_progress, completed, or incomplete.

Available options:
in_progress,
completed,
incomplete
response_id
string | null

The ID of the response that created this item, if any.