1. Documentation
Xentree Docs
  • Documentation
    • Introduction
    • Quickstart
    • Authentication
    • Conversations
    • Knowledge Base
    • Xentree Live
    • Organizations and Teams
    • Xentree English
    • Errors and Limits
  • API Reference
    • Authentication
      • Register a new user
      • Log in and get an access token
      • Refresh an access token
      • Log out the current user
      • Get the current authenticated user
      • Update the current authenticated user
    • Conversations
      • List available AI providers
      • Generate an AI response
      • List conversations for the current user
      • Create a conversation
      • Get messages for a conversation
      • Search indexed user content
    • Knowledge Base
      • Search the knowledge base
    • Xentree Live
      • Get remaining Xentree Live quota
      • Start a live session
      • Update an active live session heartbeat
      • End a live session
      • Update the user nickname used in Xentree Live
      • List live transcripts for the current user
      • Save live session transcripts
      • Get a single live transcript
    • Organizations
      • List organizations for the current user
      • Create an organization
      • Get organization details
      • Update organization details
      • Delete an organization
      • List organization members
      • Add a member to an organization
    • Integrations
      • List active integrations for the current user
      • Start the Google Calendar OAuth flow
    • Xentree English
      • List XEL modules with user progress
      • Get XEL module details
      • Submit a learning task response
      • Run AI evaluation for speaking or writing
      • Get the XEL dashboard overview
  • Schemas
    • Error
    • TokenResponse
    • UserProfile
    • ChatRequest
    • ChatResponse
    • ConversationCreateRequest
    • ConversationResponse
    • KnowledgeSearchRequest
    • LiveStartSessionRequest
    • LiveSessionResponse
    • LiveQuotaResponse
    • TranscriptTurn
    • SaveLiveTranscriptsRequest
    • OrganizationCreateRequest
    • OrganizationResponse
    • MemberResponse
    • XELModuleSummary
    • XELTaskSubmissionRequest
  1. Documentation

Conversations

The Xentree conversation APIs power AI chat, note-taking, search, and learning-session tracking.

Core capabilities#

generate AI responses
create and list conversations
fetch message history
search across indexed data
manage per-conversation learning sessions
create and manage notes

Main endpoints#

AI response generation#

POST /api/core/learn
Use this endpoint to send a user message and receive an AI-generated response.
Key request fields:
message: the user prompt
provider: model or routing mode such as auto
conversation_history: optional prior turns
user_language: optional response language hint

Providers#

GET /api/core/providers
Returns the currently available model/provider options.

Conversations#

POST /api/core/conversations
GET /api/core/conversations
DELETE /api/core/conversations/{conversation_id}

Conversation messages#

GET /api/core/conversations/{conversation_id}/messages

Search#

GET /api/core/search
GET /api/core/search/status
POST /api/core/search/reindex

Session tracking#

POST /api/core/conversations/{conversation_id}/session/start
POST /api/core/conversations/{conversation_id}/session/activity
POST /api/core/conversations/{conversation_id}/session/end
GET /api/core/conversations/{conversation_id}/session/status

Example chat request#

{
  "message": "Create a learning plan for my team.",
  "provider": "auto",
  "conversation_history": [],
  "user_language": "en"
}

Example chat response#

{
  "content": "Here is a structured learning plan for your team...",
  "provider": "auto",
  "model": "gpt-5-mini",
  "usage": null
}

Notes#

Xentree also includes note endpoints under the core router:
GET /api/core/notes
POST /api/core/notes
PUT /api/core/notes/{note_id}
DELETE /api/core/notes/{note_id}
Modified at 2026-04-17 06:31:51
Previous
Authentication
Next
Knowledge Base
Built with