Saltar a contenido

🔌 API Documentation

Complete reference for all backend endpoints.

Base URL

  • Development: http://localhost:8080
  • Production: https://api.aeternus.ai

Authentication

Most endpoints don't require authentication for MVP. Later we'll add Auth0 integration.


Chat Endpoints

POST /v1/chat

Send a message and get a response.

Request:

{
  "text": "Hello, what's the weather?",
  "user_id": "user123",
  "conversation_id": "conv456"
}

Response:

{
  "response": "I don't have access to weather data...",
  "status": "ok"
}

Status Codes:

  • 200 — Success
  • 400 — Invalid request
  • 500 — Server error

Chat Storage Endpoints

POST /api/chat/saveMessage

Save a message to the database.

POST /api/chat/loadMessages

Load previous messages for a conversation.

DELETE /api/chat/deleteMessages

Delete messages from a conversation.

POST /api/chat/saveSession

Save a chat session.


Text-to-Speech Endpoints

GET /api/tts

Get audio for a message.

POST /api/tts

Generate TTS audio.


Status Endpoints

GET /v1/health

Health check endpoint.

Response:

{ "status": "ok" }

GET /api/status/neo4j

Check Neo4j connection status.


AI Traits Endpoints

GET /api/ai/traits

Get AI personality traits.


Error Handling

All errors return JSON:

{
  "detail": "Error message here",
  "status": "error"
}

Rate Limiting

Currently no rate limiting implemented. Will add later if needed.


Webhooks

Webhooks not yet implemented.


See FastAPI Docs for general guidance.