Overview
Complete API reference for Mix
Store API key
Store API key for direct authentication with a specific provider
Handle OAuth callback
Process OAuth callback and exchange code for access token
Start OAuth authentication
Initiate OAuth authentication flow for a specific provider
Get authentication status
Get authentication status for all supported providers
Validate preferred provider
Check if the user's preferred provider is authenticated
Delete provider credentials
Delete stored API key and/or OAuth credentials for a provider
List available commands
Retrieve list of all available commands
Get specific command
Retrieve details about a specific command
List MCP servers
Retrieve list of available Model Context Protocol (MCP) servers
Get global message history
Retrieve message history across all sessions with optional pagination
Deny permission
Deny a specific permission
Grant permission
Grant a specific permission
Get user preferences
Retrieve current user preferences including model and provider settings
Update user preferences
Update user preferences including model and provider settings
Get available providers
Retrieve list of available AI providers and their supported models
Reset preferences
Reset user preferences to default values
List all sessions
Retrieve a list of all available sessions with their metadata
Create a new session
Create a new session with required title. Session automatically gets isolated storage directory.
Get a specific session
Retrieve detailed information about a specific session
Delete a session
Permanently delete a session and all its data
Cancel agent processing
Cancel any ongoing agent processing in the specified session
List session files
List all files in session storage directory
Upload file to session
Upload a file to session-specific storage directory
Get session file
Download or serve a specific file from session storage. Supports thumbnail generation with ?thumb parameter.
Delete session file
Delete a specific file from session storage
Fork a session
Create a new session based on an existing session, copying messages up to a specified index
List session messages
Retrieve all messages from a specific session
Send a message to session
Send a user message to a specific session for AI processing
Get tools status
Get status and authentication information for all available tools and categories
Health check
Check server health and status
Server-Sent Events stream for real-time updates
Establishes a persistent SSE connection for receiving real-time updates during message processing. Connection remains open for multiple messages and includes proper reconnection support with Last-Event-ID header.
Send message via streaming pipeline
Send a message to a session via the streaming pipeline. This endpoint integrates with active SSE connections to broadcast real-time processing events including thinking, content, tool execution, and completion events.