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).
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” ChatRequest
Request body for POST /chat endpoint.
object
question
required
Question
string
bbox
Any of:
Array<number>
null
Responses
Section titled “ Responses ”SSE event stream
string
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context