Skip to main content
POST
/
v1
/
chat
Send a message and receive an AI response
curl --request POST \
  --url https://dqgynnlsclfbqysauesf.supabase.co/functions/v1/api-router/v1/chat \
  --header 'Content-Type: application/json' \
  --header 'X-ARIS-API-Key: <api-key>' \
  --data '
{
  "brokerageId": "550e8400-e29b-41d4-a716-446655440000",
  "sessionId": "session_abc123",
  "messages": [
    {
      "role": "user",
      "content": "Show me 3-bedroom homes under $500k in Austin"
    }
  ]
}
'
{
  "error": "brokerageId is required"
}

Authorizations

X-ARIS-API-Key
string
header
required

Body

application/json
messages
object[]
required

Full conversation history, most recent message last.

Minimum array length: 1
brokerageId
string
required

The brokerage ID associated with your API key.

Example:

"550e8400-e29b-41d4-a716-446655440000"

sessionId
string

Optional session identifier for conversation memory persistence. If omitted, a new session ID is generated and returned in the stream's final metadata event. Reuse the same sessionId across turns to maintain context (remembered preferences, prior listings, etc.).

Example:

"session_abc123"

Response

SSE stream. Content-Type is text/event-stream. Each event follows OpenAI delta format. Property listing data is embedded in the stream using HTML comment markers (<!--PROPERTIES: ... -->) parsed by the widget renderer.