curl --request GET \
--url https://api.example.com/v1/admin/conversations \
--header 'x-admin-api-key: <x-admin-api-key>'{
"conversations": [
{
"_id": "<string>",
"_creationTime": 123,
"sessionId": "<string>",
"createdAt": 123,
"updatedAt": 123,
"lastMessage": "<string>"
}
],
"total": 123,
"error": "<string>"
}curl --request GET \
--url https://api.example.com/v1/admin/conversations \
--header 'x-admin-api-key: <x-admin-api-key>'{
"conversations": [
{
"_id": "<string>",
"_creationTime": 123,
"sessionId": "<string>",
"createdAt": 123,
"updatedAt": 123,
"lastMessage": "<string>"
}
],
"total": 123,
"error": "<string>"
}x-admin-api-key header.
Show ConversationSummary properties
curl -X GET "https://your-domain.com/v1/admin/conversations?limit=50" \
-H "x-admin-api-key: your-admin-api-key"
{
"conversations": [
{
"_id": "jd7s8dk2ls8dk3ks9d",
"_creationTime": 1709481600000,
"sessionId": "user-session-123",
"createdAt": 1709481600000,
"updatedAt": 1709481650000,
"lastMessage": "Thank you for your help!"
}
],
"total": 145
}
{
"error": "Invalid query parameters"
}
{
"error": "Unauthorized"
}
{
"error": "ADMIN_API_KEY is not configured on this deployment"
}