Skip to content

Chat

POST
/chat

Stream agent responses as Server-Sent Events.

Accepts a natural language question, runs it through the Claude agent with spatial tools, and streams text tokens and tool call events back to the client.

The X-Session-Id response header contains the session ID for follow-up requests (conversation continuity).

ChatRequest

Request body for POST /chat endpoint.

object
question
required
Question
string
session_id
Any of:
string
bbox
Any of:
Array<number>

SSE event stream

string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object