Skip to main content

Chat API

The Chat API enables you to build conversational experiences with Glean AI. Create interactive chat applications, manage conversation history, upload files for context, and leverage Glean's AI capabilities to provide intelligent responses based on your organization's knowledge.

Use Cases

AI-Powered Conversations

Build interactive chat applications that leverage Glean AI to provide intelligent responses based on your organization's indexed content.

File-Enhanced Context

Upload and manage files within chat conversations to provide additional context for more accurate and relevant AI responses.

Conversation Management

Create, retrieve, and manage chat histories to maintain context across sessions and provide personalized user experiences.

API Endpoints

MethodEndpointPurpose
POST/rest/api/v1/chatChat
Have a conversation with Glean AI.
POST/rest/api/v1/deleteallchatsDeletes all saved Chats owned by a user
Deletes all saved Chats a user has had and all their contained conversational content.
POST/rest/api/v1/deletechatsDeletes saved Chats
Deletes saved Chats and all their contained conversational content.
POST/rest/api/v1/getchatRetrieves a Chat
Retrieves the chat history between Glean Assistant and the user for a given Chat.
POST/rest/api/v1/listchatsRetrieves all saved Chats
Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content.
POST/rest/api/v1/getchatapplicationGets the metadata for a custom Chat application
Gets the Chat application details for the specified application ID.
POST/rest/api/v1/uploadchatfilesUpload files for Chat.
Upload files for Chat.
POST/rest/api/v1/getchatfilesGet files uploaded by a user for Chat.
Get files uploaded by a user for Chat.
POST/rest/api/v1/deletechatfilesDelete files uploaded by a user for chat.
Delete files uploaded by a user for Chat.
POST/rest/api/v1/chat#streamChat
Have a conversation with Glean AI.