Skip to main content
GET
/
api
/
threads
/
{threadId}
curl https://your-worker.workers.dev/api/threads/550e8400-e29b-41d4-a716-446655440000
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "agentName": "support_agent",
  "created_at": 1699900000000,
  "metadata": {
    "title": "Support Conversation"
  }
}
Retrieves thread metadata and current state.
threadId
string
required
The unique thread identifier (UUID)
id
string
required
Unique thread identifier
agentName
string
required
The agent name associated with this thread
created_at
number
required
Unix timestamp in milliseconds
metadata
object
Thread metadata object (customizable)
curl https://your-worker.workers.dev/api/threads/550e8400-e29b-41d4-a716-446655440000
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "agentName": "support_agent",
  "created_at": 1699900000000,
  "metadata": {
    "title": "Support Conversation"
  }
}