List replica's conversations
List of replica's conversations with pagination and sorting.
Query parameters
-
The number of items per page.
Minimum value is
0
, maximum value is100
. Default value is24
. -
The page number.
Minimum value is
1
. Default value is1
. -
Sort criteria.
Values are
replicaReplies
,firstMessageAt
, orlastReplicaReplyAt
. Default value islastReplicaReplyAt
. -
The order of the sort.
Values are
asc
ordesc
. Default value isdesc
.
GET
/v1/replicas/{replicaUUID}/conversations
curl \
--request GET 'https://api.sensay.io/v1/replicas/03db5651-cb61-4bdf-9ef0-89561f7c9c53/conversations' \
--header "X-ORGANIZATION-SECRET: $API_KEY" \
--header "X-USER-ID: $API_KEY" \
--header "X-API-Version: 2025-03-25"
Response examples (200)
{
"items": [
{
"uuid": "8e9309af-baa4-4a85-8c59-c3a2a0c2ad0f",
"source": "telegram",
"messageCount": 42,
"replicaReplyCount": 42,
"firstMessageAt": "2025-05-27T15:02:44.499744+00:00",
"lastMessageAt": "2025-05-27T15:02:44.499744+00:00",
"lastReplicaReplyAt": "2025-05-27T15:02:44.499744+00:00",
"conversationName": "John Doe",
"conversationImageURL": "https://example.com/image.png",
"summary": "Discussion about blockchain technology and its applications in fintech.",
"commonQuestions": [
"What is blockchain?",
"How does DeFi work?",
"What are smart contracts?"
],
"commonTopics": [
"blockchain",
"cryptocurrency",
"smart contracts",
"fintech"
],
"conversationType": "individual"
}
],
"total": 1001
}
Response examples (400)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (401)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (404)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (415)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (500)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"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"
}
}