GET
/
messages
/
{message_id}
import { ProficientClient } from "@proficient/client";

const proficient = new ProficientClient({
  apiKey: process.env.PROFICIENT_AI_PUBLISHABLE_KEY,
  userExternalId: "...", // The user's unique ID in your system
});

const messageId = "msg_BlzvLJ8h2QZY8QOK3vjhIlqK43zciPzpPgIhvTo8ai2VnQIW";

const message = await proficient.messages.get(messageId);
{
  "id": "<string>",
  "object": "message",
  "content": "<string>",
  "created_at": 123,
  "depth": 123,
  "interaction_id": "<string>",
  "parent_id": "<string>",
  "sent_by": "user"
}
import { ProficientClient } from "@proficient/client";

const proficient = new ProficientClient({
  apiKey: process.env.PROFICIENT_AI_PUBLISHABLE_KEY,
  userExternalId: "...", // The user's unique ID in your system
});

const messageId = "msg_BlzvLJ8h2QZY8QOK3vjhIlqK43zciPzpPgIhvTo8ai2VnQIW";

const message = await proficient.messages.get(messageId);

Path Parameters

message_id
string
required

The unique identifier of the message

Response

200
application/json
<p>Each interaction holds a number of <i>messages</i> and every message belongs to an interaction. The `sent_by` property of a message indicates whether a message was created by an agent or a user.</p>