get https://crazytel.io/api/v1/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
- Valid options:
- 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