Skip to main content

UI API Reference

The CAIPE UI API is a Next.js BFF. It serves browser requests, enforces UI-facing authz, persists UI data in MongoDB, and proxies selected backend services.

Backend Services

ServiceConfiguration
Dynamic AgentsDYNAMIC_AGENTS_URL
MongoDBMONGODB_URI, MONGODB_DATABASE
RAG serverRAG_SERVER_URL
Slack bot admin APIconfigured bot admin URL/token
Webex bot admin APIconfigured bot admin URL/token

Chat Routes

MethodRoutePurpose
POST/api/v1/chat/stream/startStart a Dynamic Agents SSE stream
POST/api/v1/chat/stream/resumeResume a HITL/interrupted stream
POST/api/v1/chat/stream/cancelCancel an active stream
POST/api/v1/chat/invokeNon-streaming Dynamic Agents invocation

Example:

curl -N -X POST http://localhost:3000/api/v1/chat/stream/start \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{
"message": "Check production ArgoCD apps",
"conversation_id": "conv-123",
"agent_id": "platform-engineer"
}'

Health And Config

MethodRoutePurpose
GET/api/healthUI process health
GET/api/versionBuild metadata
GET/api/configClient-visible UI config
GET/api/admin/platform-configAdmin-managed runtime defaults

Skills

MethodRoutePurpose
GET/api/skillsList catalog skills
POST/api/skillsCreate or update a skill
GET/api/skills/install.shRender local install script
POST/api/catalog-api-keysMint catalog API key

Dynamic Agent Admin

MethodRoutePurpose
GET/api/dynamic-agents/availableList chat-capable agents
GET/api/dynamic-agents/configsList agent configs
POST/api/dynamic-agents/configsCreate agent config

Route files under ui/src/app/api are the implementation source of truth.