v45

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0114775543.6 KB
Logs

Get conversation log by ID

Retrieve detailed information about a specific conversation including transcript, events, and latency metrics.

get/conversation/{id}

Path parameters

idstring required

The callId of the conversation (format CALL-{13-digit-timestamp}-{6-char-hex}). You can get the callId from the conversation logs endpoint.

Response

Successful response

statusboolean

Example response

{
  "status": true,
  "data": {
    "_id": "60d0fe4f5311236168a109ca",
    "callId": "CALL-1737000000000-abc123",
    "agent": {
      "postCallAnalyticsConfig": {
        "dispositionMetrics": [
          {
            "identifier": "call_resolved",
            "dispositionMetricPrompt": "Was the customer issue resolved by the end of the call?",
            "dispositionMetricType": "STRING",
            "choices": [
              "resolved",
              "escalated",
              "callback_scheduled",
              "no_action"
            ]
          }
        ]
      },
      "_resolvedConfig": {
        "tools": [
          {
            "name": "end_call",
            "description": "End the conversation when the user is satisfied",
            "transferNumber": "+1234567890",
            "url": "https://api.example.com/orders",
            "method": "GET",
            "headers": {
              "Authorization": "Bearer TOKEN",
              "Content-Type": "application/json"
            },
            "headersArray": [
              {
                "key": "Authorization",
                "value": "Bearer TOKEN"
              }
            ],
            "queryParams": [
              {
                "key": "id",
                "value": "{{order_id}}"
              }
            ],
            "requestBody": "{\"customer_id\": \"{{customer_id}}\"}",
            "responseVariables": [
              {
                "variableName": "orderStatus",
                "jsonPath": "$.data.status"
              }
            ],
            "variablesExtractionSchema": [
              {
                "name": "customer_name",
                "description": "The customer's full name",
                "values": [
                  "satisfied",
                  "unsatisfied",
                  "neutral"
                ]
              }
            ],
            "knowledgeBaseId": "60d0fe4f5311236168a109ca",
            "fillerPhrases": [
              "Let me check that for you",
              "One moment please"
            ]
          }
        ],
        "postCallAnalyticsConfig": {
          "dispositionMetrics": [
            {
              "identifier": "call_resolved",
              "dispositionMetricPrompt": "Was the customer issue resolved by the end of the call?",
              "dispositionMetricType": "STRING",
              "choices": [
                "resolved",
                "escalated",
                "callback_scheduled",
                "no_action"
              ]
            }
          ]
        }
      },
      "_versionedWorkflow": {
        "tools": [
          {
            "name": "end_call",
            "description": "End the conversation when the user is satisfied",
            "transferNumber": "+1234567890",
            "url": "https://api.example.com/orders",
            "method": "GET",
            "headers": {
              "Authorization": "Bearer TOKEN",
              "Content-Type": "application/json"
            },
            "headersArray": [
              {
                "key": "Authorization",
                "value": "Bearer TOKEN"
              }
            ],
            "queryParams": [
              {
                "key": "id",
                "value": "{{order_id}}"
              }
            ],
            "requestBody": "{\"customer_id\": \"{{customer_id}}\"}",
            "responseVariables": [
              {
                "variableName": "orderStatus",
                "jsonPath": "$.data.status"
              }
            ],
            "variablesExtractionSchema": [
              {
                "name": "customer_name",
                "description": "The customer's full name",
                "values": [
                  "satisfied",
                  "unsatisfied",
                  "neutral"
                ]
              }
            ],
            "knowledgeBaseId": "60d0fe4f5311236168a109ca",
            "fillerPhrases": [
              "Let me check that for you",
              "One moment please"
            ]
          }
        ]
      }
    },
    "status": "completed",
    "duration": 300
  }
}