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
Method | Endpoint | Purpose |
---|---|---|
POST | /rest/api/v1/chat | Chat Have a conversation with Glean AI. |
POST | /rest/api/v1/deleteallchats | Deletes 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/deletechats | Deletes saved Chats Deletes saved Chats and all their contained conversational content. |
POST | /rest/api/v1/getchat | Retrieves a Chat Retrieves the chat history between Glean Assistant and the user for a given Chat. |
POST | /rest/api/v1/listchats | Retrieves 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/getchatapplication | Gets the metadata for a custom Chat application Gets the Chat application details for the specified application ID. |
POST | /rest/api/v1/uploadchatfiles | Upload files for Chat. Upload files for Chat. |
POST | /rest/api/v1/getchatfiles | Get files uploaded by a user for Chat. Get files uploaded by a user for Chat. |
POST | /rest/api/v1/deletechatfiles | Delete files uploaded by a user for chat. Delete files uploaded by a user for Chat. |
POST | /rest/api/v1/chat#stream | Chat Have a conversation with Glean AI. |