interfaces/web/src/api/client.ts

Typed frontend API client for calling backend endpoints from the React app.

CategoryFrontend
Sourceinterfaces/web/src/api/client.ts

What it does

Typed frontend API client for calling backend endpoints from the React app.

Key responsibilities

  • Defines request helpers for backend paths, auth headers, and common response handling.
  • Centralizes API URL construction and Luna key retrieval logic.
  • Used by UI components to call chat, memory, system, agent, and Spotify endpoints.

Related files

Explore other files in the Frontend category.