Skip to main content

Internal Next.js API Routes

These endpoints are for UI-only usage. toto-bo must use Cloud Functions API (functions/src/api.ts). Overlapping endpoints with Functions are considered internal and may change without notice.

Internal endpoints​

  • POST /api/chat-orchestrator
  • POST /api/onboarding-orchestrator
  • POST /api/gemini-summary
  • GET/POST /api/cases (UI usage; backoffice should use Functions /cases)
  • POST /api/donations/* (UI usage; backoffice use Functions /donations)
  • POST /api/save-conversation, GET/PATCH/DELETE /api/user-conversations (UI usage)

External (for backoffice)​

Use Cloud Functions API documented in toto-docs under the backoffice API section.