AI API¶
Get current model¶
Returns the currently active AI model.
Set active model¶
Available models: gemini, claude, qwen, qwen3
Generate content¶
Generate AI content with optional model override.
Chat (AI Copilot)¶
Natural language chat endpoint. See AI Operations Copilot.
Email intelligence¶
AI analysis of email content for urgency, insights, and action items.
Runtime API key management¶
Manage AI provider API keys at runtime without restarting the server:
| Method | Endpoint | Description |
|---|---|---|
GET | /api/api-keys | List configured AI keys (status only) |
POST | /api/api-keys | Add or override an AI provider key |
DELETE | /api/api-keys/{keyId} | Remove a runtime key override |
n8n integration endpoints¶
Used by n8n workflows to interact with the AI system:
| Method | Endpoint | Description |
|---|---|---|
POST | /api/n8n/email-response | Generate AI email response |
POST | /api/n8n/digital-audit | Generate AI audit report |
GET | /api/n8n/model-info | Get current model info |