SiteAssist

Get Chats

Get all chats for a given customer

GET
/customers/{appUserId}/chats
x-siteassist-key<token>

In: header

Path Parameters

appUserIdstring

App User ID

Length1 <= length

Query Parameters

filter?string
Value in"all" | "open" | "closed"
page?string
pageSize?string

Response Body

curl -X GET "https://loading/customers/string/chats?filter=all&page=string&pageSize=string"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "status": "open",
      "createdAt": "string",
      "closedAt": "string",
      "lastMessage": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "feedback": "like",
        "role": "assistant",
        "parts": "string"
      }
    }
  ],
  "page": 0,
  "pageSize": 0,
  "totalPages": 0
}
Empty
Empty
Empty
Empty
Empty