cURL
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>" }
Retrieves a specific message from a thread.
Your Langtail API Key
"<LANGTAIL_API_KEY>"
The ID of the thread containing the message.
The ID of the message to retrieve.
Successful response
The response is of type object.
object
Was this page helpful?