Skip to main content
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

string
required
Your eigi.ai API key. Must be prefixed with vk_.

Path Parameters

string
required
The unique identifier of the chat session to retrieve. Example: 58a6b549-ef07-4a31-86bc-0eb0e026840a

Response

string
Unique identifier for the chat session.
string
ID of the agent handling this session.
string
Current session status. One of: IN_PROGRESS, COMPLETED, DISCONNECTED, FAILED.
array
Array of all messages in the session.
integer
Total number of messages in the session.
string
ISO 8601 timestamp when the session was created.
string
ISO 8601 timestamp when the session was last updated.
object
Custom metadata attached to the session.

Message Object

Each message in the messages array contains:
string
Who sent the message: user or assistant.
string
The text content of the message.
string
ISO 8601 timestamp when the message was sent.

Examples

Get Session Details

Response Example

Error Responses

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

X-API-Key
string
header
required

API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.

Path Parameters

session_id
string
required

The unique session ID

Response

Successfully retrieved chat session

session_id
string

Unique session identifier

agent_id
string

ID of the agent

status
enum<string>

Session status

Available options:
IN_PROGRESS,
COMPLETED,
DISCONNECTED,
FAILED
messages
object[]
message_count
integer
created_at
string<date-time>
updated_at
string<date-time>
metadata
object