get_call_history
Retrieve detailed call history from DIDlogic by filtering parameters like call type, date range, or specific numbers. Returns JSON with call details, timestamps, durations, and pagination for efficient data management.
Instructions
Query Call history in DIDlogic
Args: call_type: Type of call history items where: sip = outbound sip calls incoming = inbound calls to DID from_date: Date to search from, should be in YYYY-MM-DD format to_date: Date to search to, should be in YYYY-MM-DD format number: Number to search for incoming calls sip_account: SIP account name to search for outbound calls from_search: Number from whom was the call to_search: Number to what was the call page: page of result starting with 1 per_page: how many results should be on per page
Returns a JSON object with a call history results where: calls: array of call history objects where: timestamp: date of the call type: call type where: sip = outbound sip call incoming = inbound call to DID amount: charge for this call in USD duration: duration of call in seconds from: from number for this call to: to number which this call was made destination_name: destination network name for this call sip_account: SIP account name for outbound SIP calls pagination: Pagination details for results page: current page of results per_page: results per page total_pages: total pages results total_records: total query records (maximum 5000)
Example response:
Input Schema
Name | Required | Description | Default |
---|---|---|---|
call_type | No | Type of call, can be sip or incoming | |
from_date | Yes | From date in format YYYY-MM-DD | |
from_search | No | From number search, E164 format | |
number | No | Number for search, E164 format | |
page | No | results page | |
per_page | No | results per page | |
sip_account | No | SIP Account name for search | |
to_date | Yes | To date in format YYYY-MM-DD | |
to_search | No | To number search, E164 format |