Skip to content

API Reference

All client APIs are versioned under /api/v1. This is FeltnerAI’s own API; it is not an OpenAI-compatible gateway (see OpenAI Compatibility).

  • Browser login creates an HttpOnly session cookie and returns a CSRF token. Cookie-authenticated mutations require an X-CSRF-Token header.
  • Portal login returns an opaque bearer session token. Bearer-authenticated requests do not require CSRF.
  • Setup mutations require the one-time X-Setup-Token header.
GET /health
GET /server
GET /setup/status
POST /setup/test-provider (X-Setup-Token)
POST /setup/complete (X-Setup-Token)
POST /auth/login
GET /branding/logo
GET /branding/favicon
GET /branding/custom.css
POST /auth/logout
GET /auth/session
PUT /auth/password
PUT /auth/preferences
GET /models
# Chat CRUD
... /chats
GET /chats/{id}/messages
# SSE generation, regeneration, and stop
... /chats/{id}

Generation accepts a client UUID and emits Server-Sent Events named:

EventMeaning
startedThe server accepted the request and began streaming
deltaAn incremental chunk of the response
completedThe response finished
errorGeneration failed

The JSON payload of each event repeats the normalized event discriminator.

# Users
... /admin/users
# Providers and connection tests
... /admin/providers
POST /admin/providers/{id}/test
# Models
... /admin/providers/{id}/models
... /admin/models
# Server settings
... /admin/server
# Full-data export / import
POST /admin/data/export
POST /admin/data/import
# Branding configuration and uploads
... /admin/branding