Skip to main content
GET
/
api
/
assistants
/
threads
/
{agentId}
Retrieve session threads
curl --request GET \
  --url https://agent-service-511985928315.us-east4.run.app/api/assistants/threads/{agentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Envole-User-Id: <api-key>'
[
  {
    "id": "thread_456",
    "threadName": "Project Ideas",
    "agentId": "agent_abc",
    "agentName": "Demo Agent",
    "agentHandle": "demo-agent",
    "rootAgentBuildId": "build_123",
    "lastMessageTime": "2024-01-01T12:00:00Z",
    "sessionType": "LIVE"
  }
]
Fetch session threads for a specific agent.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

X-Envole-User-Id
string
header
required

External user identifier; not necessarily registered with Envole

Path Parameters

agentId
string
required

Query Parameters

active
boolean

Response

A list of session threads.

id
string
threadName
string
agentId
string
agentName
string
agentHandle
string
rootAgentBuildId
string
lastMessageTime
string<date-time>
sessionType
enum<string>
Available options:
LIVE,
TESTING
I