Assistant messages in threads
Get Thread Message
Retrieves a specific message from a thread.
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
requiredYour Langtail API Key
Path Parameters
threadId
string
requiredThe ID of the thread containing the message.
messageId
string
requiredThe ID of the message to retrieve.
Response
200 - application/json
id
string
requiredThe unique identifier for the message.
createdAt
string
requiredThe timestamp when the message was created.
threadId
string
requiredThe 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.
Was this page helpful?