NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

CDR (Call History) → Read Cdrs

AI-generated

Summary

Fetch CDRs with optional filters and pagination

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • GetCdrs__query__datetime-start (required) —
  • GetCdrs__query__datetime-end (required) —
  • GetCdrs__query__type — Options include Inbound, Outbound, On-net, Off-net, Missed, Received, or integer type 0,1,2,3
  • GetCdrs__query__orig_callid — Optional and legacy ability to lookup a specific call by orig_callid . Only available for top level without specific domain set. \n
  • GetCdrs__query__term_callid — Optional and legacy ability to lookup a specific call by term_callid . Only available for top level without specific domain set. \n
  • GetCdrs__pagination__returnAll — Whether to fetch all results by paging through the API
  • GetCdrs__pagination__start — Start index for pagination (used when Return All Results is false)
  • GetCdrs__pagination__limit — Page size limit (used when Return All Results is false)

Output shape

a list of CDR objects

If Return All Results is false, only the slice defined by start and limit is returned; you may need to loop using successive start values to retrieve all data.

Examples

Example 1: Retrieve CDRs for a specific date range

Set Datetime Start and End to the desired period, optionally set Type, and leave Return All Results true to get all results in one call

Links

Discussion