Overview
This endpoint returns all chat sessions created through your agents. Use it to monitor chat activity, review conversation history, and manage ongoing sessions.
Authentication
Your eigi.ai API key. Must be prefixed with vk_.
Query Parameters
Page number to retrieve (minimum: 1)
Number of items per page (minimum: 1, maximum: 100)
Filter sessions by a specific agent ID. Example: 68ea2517dbb84c09bae1ba0a
Response
Always "list" for list responses.
Array of chat session objects.
Whether there are more results available beyond this page.
Total number of sessions matching the query.
Number of items per page.
Total number of pages available.
Session Object
Unique identifier for the chat session.
Always "chat.session" for session objects.
Unix timestamp when the session was created.
Unix timestamp when the session was last updated.
ID of the agent handling this session.
Name or identifier for the conversation.
Total number of messages in the session.
Custom metadata attached to the session.
Examples
List All Sessions
curl -X GET "https://prod.eigi.ai/v1/public/chat/sessions?page=1&page_size=10" \
-H "X-API-Key: vk_your_api_key_here"
Filter by Agent
curl -X GET "https://prod.eigi.ai/v1/public/chat/sessions?agent_id=68ea2517dbb84c09bae1ba0a" \
-H "X-API-Key: vk_your_api_key_here"
Response Example
{
"object" : "list" ,
"data" : [
{
"id" : "58a6b549-ef07-4a31-86bc-0eb0e026840a" ,
"object" : "chat.session" ,
"created_at" : 1701792000 ,
"updated_at" : 1701792100 ,
"agent_id" : "68ea2517dbb84c09bae1ba0a" ,
"conversation_name" : "Support Chat" ,
"message_count" : 12 ,
"metadata" : {
"user_id" : "user_123" ,
"source" : "website"
}
},
{
"id" : "a7c3d421-b89e-4f12-9c6a-1e2f3g4h5i6j" ,
"object" : "chat.session" ,
"created_at" : 1701788400 ,
"updated_at" : 1701789500 ,
"agent_id" : "68ea2517dbb84c09bae1ba0a" ,
"conversation_name" : "Product Inquiry" ,
"message_count" : 8 ,
"metadata" : {}
}
],
"has_more" : true ,
"total" : 45 ,
"page" : 1 ,
"page_size" : 10 ,
"total_pages" : 5
}
Error Responses
Status Code Description 401 Unauthorized Missing, invalid, inactive, or expired API key 403 Forbidden API key owner doesn’t have access to the specified agent
{
"detail" : "Invalid API key"
}
Use Cases
Analytics Dashboard Track chat volume, session counts, and engagement metrics
Customer Support Monitor active chat sessions and review conversation history
Quality Assurance Review chat interactions for training and improvement
CRM Integration Sync chat sessions with your customer management system
API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.
Items per page (minimum: 1, maximum: 100)
Required range: 1 <= x <= 100
Filter sessions by agent ID
Successfully retrieved chat sessions
Unique session identifier
Unix timestamp of creation
Unix timestamp of last update
ID of the agent handling this session
Total messages in session