Skip to main content
GET
/
conversation
Get all conversation logs
curl --request GET \
  --url https://atoms-api.smallest.ai/api/v1/conversation \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "data": {
    "logs": [
      {
        "_id": "60d0fe4f5311236168a109ca",
        "callId": "CALL-1737000000000-abc123",
        "status": "completed",
        "duration": 120,
        "from": "+15551234567",
        "to": "+15559876543",
        "type": "telephony_outbound",
        "agentId": "60d0fe4f5311236168a109ca",
        "agentName": "Sales Agent",
        "recordingUrl": "https://storage.example.com/recordings/call-123.mp3",
        "recordingDualUrl": "https://storage.example.com/recordings/call-123-dual.mp3",
        "disconnectionReason": "user_hangup",
        "retryCount": 0,
        "createdAt": "2025-01-15T10:30:00.000Z",
        "dispositionMetrics": {
          "interested": "yes",
          "follow_up_needed": "no"
        },
        "agentDispositionConfig": [
          {
            "identifier": "<string>",
            "type": "<string>"
          }
        ]
      }
    ],
    "pagination": {
      "total": 150,
      "page": 1,
      "limit": 10,
      "hasMore": true,
      "totalPages": 15
    },
    "dispositionMetricsConfig": [
      {
        "identifier": "<string>",
        "type": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer
default:1

Page number for pagination

Required range: x >= 1
limit
integer
default:5

Number of items per page

Required range: x >= 1
agentIds
string

Comma-separated list of agent IDs to filter by

campaignIds
string

Comma-separated list of campaign IDs to filter by

callTypes
enum<string>

Comma-separated list of call types to filter by

Available options:
telephony_inbound,
telephony_outbound,
chat

Search query to filter by callId, fromNumber, or toNumber

statusFilter
string

Comma-separated list of call statuses to filter by. Available statuses: pending, in_progress, completed, failed, no_answer, cancelled, busy

disconnectReasonFilter
string

Comma-separated list of disconnect reasons to filter by. Available reasons: user_hangup, agent_hangup, connection_error, timeout, system_error, transfer_complete

callAttemptFilter
string

Comma-separated list of call attempt types to filter by. Available filters: initial (first attempt calls), retry (retry attempt calls), all (all calls)

durationFilter
string

Comma-separated list of duration ranges to filter by. Available ranges: 0-30 (0-30 seconds), 30-60 (30-60 seconds), 1-5 (1-5 minutes), 5+ (more than 5 minutes)

Response

Successful response

status
boolean
Example:

true

data
object