Skip to main content
GET
/
legacy
/
reporting
/
batch_detail_records
/
voice
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const voices = await client.legacy.reporting.batchDetailRecords.voice.list();

console.log(voices.data);
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "start_time": "2024-02-01T00:00:00Z",
      "end_time": "2024-02-12T23:59:59Z",
      "call_types": [
        123
      ],
      "record_types": [
        1,
        2
      ],
      "connections": [
        123,
        456
      ],
      "report_name": "My Report",
      "status": 1,
      "report_url": "<string>",
      "filters": [
        {
          "filter_type": "and",
          "cli": "+13129457420",
          "cli_filter": "contains",
          "cld": "+13129457420",
          "cld_filter": "contains",
          "tags_list": "tag1",
          "billing_group": "adfaa016-f921-4b6c-97bb-e4c1dad231c5"
        }
      ],
      "created_at": "2024-02-12T14:00:00Z",
      "updated_at": "2024-02-12T14:05:00Z",
      "timezone": "<string>",
      "source": "<string>",
      "retry": 123,
      "managed_accounts": [
        "f47ac10b-58cc-4372-a567-0e02b2c3d479",
        "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
      ],
      "record_type": "cdr_detailed_report"
    }
  ],
  "meta": {
    "total_pages": 3,
    "total_results": 55,
    "page_number": 2,
    "page_size": 25
  }
}

Authorizations

Authorization
string
header
required

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

Response

CDR report requests retrieved successfully

data
object[]
meta
object