Get Cdrs

Retrieve Call Detail Records (CDRs) for the authenticated user. This API can be used to fetch Voice calls, SMS messages (incoming and outgoing), and DID call records.

Parameters:

  • limit: Maximum number of records to return (default: 100)
  • extension: Filter by SIP Trunk or CrazyPBX Extension Number
  • type: Filter by call type (must start with '*')
    • Valid options:
      • *voice: Voice call records
      • *smsout: Outgoing SMS messages
      • *smsin: Incoming SMS messages
      • *did: DID call records
  • start_date: Start date in YYYY-MM-DD or ISO format
  • end_date: End date in YYYY-MM-DD or ISO format

Notes:

  • If no dates are provided, returns records from the last 3 months
  • Maximum date range is 3 months
  • Results are ordered by setup_time in descending order (newest first)
  • Several fields in the response may be null/None:
    • answer_time: Will be null for unanswered calls
    • connect_fee, rate, total_cost: May be null for certain call types
    • caller_id_name: May be null if not provided
    • pdd (Post Dial Delay): May be null for certain call scenarios
    • destination_name, prefix: May be null depending on the call routing
  • Integrators should handle null values for all fields in their applications
Query Params

Number of records to return

Filter by SIP Trunk or CrazyPBX Extension Number

Filter by call type. Must start with '*'. Valid options: *smsout, *smsin, *voice, *did

Start date (YYYY-MM-DD or ISO format)

End date (YYYY-MM-DD or ISO format)

Responses

401

Unauthorized

404

Account not found

422

Invalid date range or type

500

Internal server error

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json