GET
/
v2
/
threads
/
{threadId}
/
messages
/
{messageId}
curl --request GET \
  --url https://api.langtail.com/v2/threads/{threadId}/messages/{messageId} \
  --header 'X-API-Key: <x-api-key>'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "threadId": "<string>",
  "content": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "metadata": {},
  "requestLog": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "request": {},
    "response": {}
  },
  "requestLogId": "<string>"
}

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

Example:

"<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
Successful response

The response is of type object.