SiteAssist

Chat

Chat with AI Assistant

POST
/customers/{appUserId}/chats/{chatId}/chat
x-siteassist-key<token>

In: header

Path Parameters

appUserIdstring

App User ID

Length1 <= length
chatIdstring

Chat ID

Formatuuid
streaming?boolean

Toggle streaming

Defaulttrue
messageId?string | null

Message id to regenerate

previousMessages?array<object>

Add custom message history.

messageobject
pageUrl?string | null

Page url from where the user is sending the query

Formaturi
pageContent?string | null

Page content from where the user is sending the query

Lengthlength <= 10000

Response Body

curl -X POST "https://loading/customers/string/chats/497f6eca-6276-4993-bfeb-53cbbbba6f08/chat" \  -H "Content-Type: application/json" \  -d '{    "message": {      "role": "user",      "parts": [        {          "type": "text",          "text": "Hello!"        }      ]    }  }'
"string"
Empty
Empty
Empty
Empty
Empty