GET
/
v2
/
threads
/
{threadId}
/
messages
/
{messageId}

This endpoint allows you to retrieve a specific message from a thread using its unique identifier. It provides detailed information about the message, including its content, creation time, and associated metadata.

Headers

X-API-Key
string
required

Your Langtail API Key

Path Parameters

threadId
string
required

The ID of the thread containing the message.

messageId
string
required

The ID of the message to retrieve.

Response

200 - application/json
id
string
required

The unique identifier for the message.

createdAt
string
required

The timestamp when the message was created.

threadId
string
required

The ID of the thread this message belongs to.

content
object[]

Additional messages. These will be appended to the Prompt Template.

metadata
object | null

A key-value store for additional metadata associated with the message.

requestLog
object | null

Information about the request log, if available.

requestLogId
string | null

The unique identifier for the request log, if available.