chat.nikasites.com

API Documentation

chat.nikasites.com provides a centralised archive of Nika conversations across all hives. Browse, search, and query conversation history.

Base URL: https://chat.nikasites.com

Endpoints
GET/Landing page (HTML)
GET/dashboardConversation browser + AI chat (auth)
GET/conversationsList conversations (JSON, auth)
GET/conversations/:idFull conversation (JSON, auth)
POST/chatAI chat with history context (auth)
GET/healthHealth check (JSON)
GET/docsThis page (HTML)
Authentication

All data endpoints require a Firebase ID token from any connected hive. The token is verified via Google's Identity Toolkit API and the user must have a global role (dev, admin, or global-admin) in the central Firestore.

curl https://chat.nikasites.com/conversations \
  -H "Authorization: Bearer <firebase-id-token>"
GET /conversations — Response
{
  "conversations": [
    {
      "id": "abc123",
      "title": "Piano exam scheduling",
      "messageCount": 12,
      "createdAt": "2025-12-01T10:00:00Z",
      "updatedAt": "2025-12-01T10:30:00Z"
    }
  ],
  "count": 1
}
POST /chat — Request Body
{
  "messages": [
    { "role": "user", "content": "What did I discuss about auth last week?" }
  ]
}

Nika has context of all your archived conversations and can answer questions about past discussions.