Skip to main content
Retrieve conversation logs to analyze call metrics, view transcripts, and monitor your agents.

Quick Example

import requests
import os

API_KEY = os.getenv("SMALLEST_API_KEY")

# Get conversation details
response = requests.get(
    f"https://atoms.smallest.ai/api/v1/conversation/{call_id}",
    headers={"Authorization": f"Bearer {API_KEY}"}
)
data = response.json()["data"]

print(f"Duration: {data['duration']} seconds")
print(f"Status: {data['status']}")
print(f"Type: {data['type']}")
print(f"Recording: {data['recordingUrl']}")

Available Metrics

MetricFieldDescription
Call IDcallIdUnique call identifier
Statusstatusin_progress, completed, failed
DurationdurationLength in seconds
Typetypetelephony_outbound, telephony_inbound, chat
TranscripttranscriptArray of conversation messages
RecordingrecordingUrlLink to mono audio
Dual RecordingrecordingDualUrlLink to stereo audio
CostcallCostCall cost in credits
FromfromCaller phone number
TotoRecipient phone number
EventseventsCall lifecycle events
AgentagentAgent configuration used

What’s Next