Get Call logs using the Phone Number
# support
v
How do I get call logs via API using Phone Number or Phone Number ID? I can get the call logs using the assistantId but my phone number has no assistant assigned. When the call is initiated my server dynamically responds with assistant configuration. How do I filter the call logs using the phone number or the id of the phone number? I dont find them on docs or in any discord discussions. Any help?
v
@Vijay To retrieve call logs using a phone number or phone number ID, you would typically use an API endpoint provided by the service that handles call logs. However, if such an endpoint is not documented or discussed in the community resources like Discord, it's possible that this functionality might not be directly supported or may require a different approach. Since you mentioned that you can get the call logs using the
assistantId
, but your phone number has no assistant assigned, and your server dynamically responds with assistant configuration, you might need to implement a custom logging mechanism on your server that records call details when it responds to call initiations. If you need to filter the call logs using the phone number or the phone number ID, you could: 1. Implement a logging system on your server that captures the phone number or phone number ID along with the call details every time your server dynamically generates an assistant configuration. 2. Store these logs in a database or a file system with the ability to query or filter based on the phone number or phone number ID. 3. Create an API endpoint on your server that allows you to retrieve these logs with the necessary filters. If you believe that the service should support retrieving call logs by phone number or phone number ID directly through their API, I recommend reaching out to the support team for further assistance. They might provide you with an undocumented method or consider it as a feature request for future updates. Please ask support for more info on this if you need specific guidance on how to interact with the API to achieve your goal, as the functionality you're asking about does not seem to be covered in the available documentation or community discussions.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
v
any help?
3 Views