Chat history
Get chat history
List chat history items of a Replica belonging to the logged in user.
get/v1/replicas/{replicaUUID}/chat/history
Request
- Base URL: https://api.sensay.io
- URL: https://api.sensay.io/v1/replicas/{replicaUUID}/chat/history
- Auth: one of:
- API key in header X-ORGANIZATION-SECRET and API key in header X-USER-ID and API key in header X-USER-ID-TYPE
- API key in header X-ORGANIZATION-SECRET
Path parameters
replicaUUIDstring uuid required
The replica unique identifier (UUID)
Example:03db5651-cb61-4bdf-9ef0-89561f7c9c53
Headers
X-API-Versionstring
Example:2025-03-25
Response
List the chat history of the replica by the currently logged in user
Example response
{
"items": [
{
"content": "Hello",
"created_at": "2024-09-24T09:09:55.66709+00:00",
"id": 1,
"role": "user",
"source": "web",
"sources": [
{
"id": 123,
"score": 0.9,
"status": "scored",
"created_at": "2024-03-15T14:30:00.000Z",
"name": "Q: Next, what’s your nationality?",
"content": "Next, what’s your nationality? Mars"
}
],
"user_uuid": "03db5651-cb61-4bdf-9ef0-89561f7c9c53",
"original_message_id": "msg-GbsIAyNcNZCMAaDET3zXhInw"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.