Get Discord chat history
List discord chat history items of a Replica belonging to the logged in user.
Path parameters
-
replicaUUID
string(uuid) Required The UUID of the Replica
Responses
-
200 application/json
List the chat history of the replica by the currently logged in user
-
400 application/json
Bad Request
-
401 application/json
Unauthorized
-
The replica specified could not be found or you do not have access to it
-
415 application/json
Unsupported Media Type
-
500 application/json
Internal Server Error
GET
/v1/replicas/{replicaUUID}/chat/history/discord
curl \
--request GET 'https://api.sensay.io/v1/replicas/03db5651-cb61-4bdf-9ef0-89561f7c9c53/chat/history/discord' \
--header "X-ORGANIZATION-SECRET: $API_KEY" \
--header "X-USER-ID: $API_KEY"
Response examples (200)
{
"success": true,
"type": "string",
"items": [
{
"content": "Hello",
"created_at": "2024-09-24T09:09:55.66709+00:00",
"id": 1,
"is_private": false,
"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"
}
]
}
Response examples (400)
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (401)
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (415)
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (500)
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"inner_exception": {
"name": "Server overheated",
"cause": "Request too complicated",
"stack": "Error: Server overheated due to an unexpected situation\n at Object.eval (eval at <anonymous>...",
"message": "The server overheated due to an unexpected situation"
}
}