🤖 MIA Backend API v2.0
Sistema Multi-Agente para Atendimento Comercial
Endpoints Disponíveis
Chat
POST /api/chat- Enviar mensagem
Agentes
GET /api/agents- Listar agentesPOST /api/agents- Criar agenteGET /api/agents/:id- Buscar agentePATCH /api/agents/:id- Atualizar agenteDELETE /api/agents/:id- Deletar agente
Conhecimento (RAG)
GET /api/agents/:id/knowledge- Listar conhecimentoPOST /api/agents/:id/knowledge- Adicionar conhecimentoDELETE /api/agents/:id/knowledge- Remover conhecimento
Orquestradores
GET /api/orchestrators/:id/agents- Listar agentes do orquestradorPOST /api/orchestrators/:id/agents- Associar agentePATCH /api/orchestrators/:id/agents- Atualizar associaçãoDELETE /api/orchestrators/:id/agents- Desassociar agente
Conversas
GET /api/conversations- Listar conversasGET /api/conversations/:id- Buscar conversaPATCH /api/conversations/:id- Atualizar conversaDELETE /api/conversations/:id- Arquivar conversa
Logs
GET /api/logs- Listar logs para debug