Get Chat Session
Chat
Get Chat Session
Retrieve complete details and messages for a specific chat session
GET
Get Chat Session
Overview
This endpoint retrieves the complete chat session including all messages, status, and metadata. Use it to review conversation history, display chat transcripts, or sync session data with external systems.Authentication
Your eigi.ai API key. Must be prefixed with
vk_.Path Parameters
The unique identifier of the chat session to retrieve. Example:
58a6b549-ef07-4a31-86bc-0eb0e026840aResponse
Unique identifier for the chat session.
ID of the agent handling this session.
Current session status. One of:
IN_PROGRESS, COMPLETED, DISCONNECTED,
FAILED.Array of all messages in the session.
Total number of messages in the session.
ISO 8601 timestamp when the session was created.
ISO 8601 timestamp when the session was last updated.
Custom metadata attached to the session.
Message Object
Each message in themessages array contains:
Who sent the message:
user or assistant.The text content of the message.
ISO 8601 timestamp when the message was sent.
Examples
Get Session Details
Response Example
Error Responses
| Status Code | Description |
|---|---|
| 400 Bad Request | The specified session is not a chat session (e.g., it’s a voice call) |
| 401 Unauthorized | Missing, invalid, inactive, or expired API key |
| 403 Forbidden | API key owner doesn’t have access to this session |
| 404 Not Found | Session not found with the given ID |
Example Error Response
Use Cases
Chat History
Display full conversation history to users
Export Transcripts
Export chat transcripts for records or analysis
Resume Conversations
Continue conversations from where they left off
Support Handoff
Review context before human agent takeover
Authorizations
API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.
Path Parameters
The unique session ID
Response
Successfully retrieved chat session

