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
required

Your Langtail API Key

Path Parameters

threadId
string
required

The ID of the thread to retrieve.

Response

200 - application/json
id
string
required

The unique identifier for the thread.

createdAt
integer
required

The Unix timestamp (in seconds) of when the thread was created.

projectId
string
required

The 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.