curl --request GET \
--url https://api.example.com/v1/admin/conversations/:conversationId \
--header 'x-admin-api-key: <x-admin-api-key>'{
"conversation": {
"_id": "<string>",
"_creationTime": 123,
"sessionId": "<string>",
"createdAt": 123,
"updatedAt": 123,
"lastMessage": "<string>"
},
"messages": [
{
"_id": "<string>",
"role": {},
"content": "<string>",
"createdAt": 123
}
],
"error": "<string>"
}curl --request GET \
--url https://api.example.com/v1/admin/conversations/:conversationId \
--header 'x-admin-api-key: <x-admin-api-key>'{
"conversation": {
"_id": "<string>",
"_creationTime": 123,
"sessionId": "<string>",
"createdAt": 123,
"updatedAt": 123,
"lastMessage": "<string>"
},
"messages": [
{
"_id": "<string>",
"role": {},
"content": "<string>",
"createdAt": 123
}
],
"error": "<string>"
}x-admin-api-key header.
ConversationThread object containing the conversation summary and all messages.
Show ConversationSummary properties
curl -X GET "https://your-domain.com/v1/admin/conversations/jd7s8dk2ls8dk3ks9d" \
-H "x-admin-api-key: your-admin-api-key"
{
"conversation": {
"_id": "jd7s8dk2ls8dk3ks9d",
"_creationTime": 1709481600000,
"sessionId": "user-session-123",
"createdAt": 1709481600000,
"updatedAt": 1709481650000,
"lastMessage": "Thank you for your help!"
},
"messages": [
{
"_id": "msg_001",
"role": "user",
"content": "How do I reset my password?",
"createdAt": 1709481600000
},
{
"_id": "msg_002",
"role": "assistant",
"content": "I can help you reset your password. Please click on the 'Forgot Password' link on the login page.",
"createdAt": 1709481620000
},
{
"_id": "msg_003",
"role": "user",
"content": "Thank you for your help!",
"createdAt": 1709481650000
}
]
}
{
"error": "Invalid conversationId"
}
{
"error": "Unauthorized"
}
{
"error": "Conversation not found"
}
{
"error": "ADMIN_API_KEY is not configured on this deployment"
}