Threads
Thread by ID
Retrieves a thread by its ID.
GET
/
v2
/
threads
/
{threadId}
This endpoint retrieves a single thread by its unique identifier. It provides detailed information about a specific conversation thread, including its creation timestamp, associated project, and any custom metadata.
Headers
X-API-Key
string
requiredYour Langtail API Key
Path Parameters
threadId
string
requiredThe ID of the thread to retrieve.
Response
200 - application/json
id
string
requiredThe unique identifier for the thread.
createdAt
integer
requiredThe Unix timestamp (in seconds) of when the thread was created.
projectId
string
requiredThe ID of the project this thread belongs to.
deletedAt
string | null
The timestamp when the thread was deleted, if applicable.
createLog
object | null
A log created by the first message that creates the thread.
metadata
object | null
A set of key-value pairs that can be attached to the thread. This can be used to store additional information about the thread to facilitate filtering or organization.
Was this page helpful?