Agent

Streaming chat via Claude Agent SDK + MCP (replaces /v1/chat-stream)

Open an Agent SDK session and stream the response.

The agent connects to our own MCP server over loopback SSE, executes tools to compute answers, and streams results back to the browser as SSE events. Every tool call is logged to agent_tool_calls (Supabase).

file_id resolution priority:

  1. Explicit file_id in the form (used by /try light demo + stateless API).
  2. project_id → primary file (used by the full app at /app where the user is logged in and we know which project they're working on).
post/v1/agent/chat

Request

  • Base URL: https://spss.insightgenius.io (the document declares no server; this is the origin it was published from)
  • URL: https://spss.insightgenius.io/v1/agent/chat
  • Auth: none declared

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.