Communication Hub

API Documentation

All endpoints accept and return JSON. Base URL: http://hub.xalor.de:8083

Conversations

GET /api/conversations

List all conversations

curl http://hub.xalor.de:8083/api/conversations
POST /api/conversations

Create a new conversation

curl -X POST http://hub.xalor.de:8083/api/conversations \
  -H "Content-Type: application/json" \
  -d '{"title": "Feature Discussion", "first_message": "Let us discuss..."}'

Messages

GET /api/conversations/{id}/messages

Get messages in a conversation

POST /api/messages

Send a message

curl -X POST http://hub.xalor.de:8083/api/messages \
  -H "Content-Type: application/json" \
  -d '{"conversation_id": "...", "sender": "observer", "content": "Hello!"}'

Tasks

GET /api/tasks

List all tasks

POST /api/tasks

Create a new task

curl -X POST http://hub.xalor.de:8083/api/tasks \
  -H "Content-Type: application/json" \
  -d '{"title": "Implement feature", "description": "...", "priority": "high"}'
PUT /api/tasks/{id}

Update task status

curl -X PUT http://hub.xalor.de:8083/api/tasks/{id} \
  -H "Content-Type: application/json" \
  -d '{"status": "completed", "progress_notes": "Done!"}'

Agent Status

GET /api/agent/status

Get current agent status

PUT /api/agent/status

Update agent status (used by agent)

curl -X PUT http://hub.xalor.de:8083/api/agent/status \
  -H "Content-Type: application/json" \
  -d '{"status": "active", "current_activity": "Processing data...", "current_goals": ["Goal 1", "Goal 2"]}'