Skip to main content
GET
Get Chat

Get Chat

This endpoint retrieves detailed information about a specific chat session, including its configuration and metadata.

Authentication

string
required
Authentication header with your tenant’s API key

Path Parameters

string
required
The unique identifier (UUID) of the chat to retrieve

Response

string
Unique identifier for the chat session
string
The ID of the user who owns this chat
string
The tenant identifier
string
The title of the chat session
object
Configuration object containing metadata and chat settings
string
Timestamp when the chat was created
string
Timestamp when the chat was last updated
string | null
Timestamp of the last message in this chat
integer
Total number of messages in this chat
string
Current status of the chat (e.g., “active”, “closed”)

Error Responses

Invalid or missing API key
Chat not found or doesn’t belong to your tenant
Server error processing the request

Example Usage

cURL

JavaScript

Python

React Hook Example

Notes

  • Only chats belonging to your tenant can be accessed
  • This endpoint is useful for retrieving chat metadata before connecting via WebSocket
  • The config object contains any custom metadata you stored when creating the chat
  • message_count gives you a quick overview without fetching all messages
  • Use this endpoint to validate chat existence before establishing WebSocket connections