Is it possible to retrieve historical BYOC trunk registration states via the PureCloud API for audit compliance? We are currently managing 15 BYOC trunks across APAC regions, and our internal security team requires a comprehensive log of all registration changes, including successful registrations, failures, and credential updates, for the past 12 months. The standard GET /api/v2/telephony/providers/edge/trunk/{trunkId} endpoint only provides the current configuration and status snapshot. While the /api/v2/analytics/events queries allow us to pull some high-level event data, the granularity regarding specific SIP registration outcomes (e.g., 403 Forbidden vs 401 Unauthorized) seems insufficient for our detailed carrier failover analysis. We need to correlate specific registration drops with carrier-side maintenance windows, but the existing analytics endpoints do not seem to expose the detailed SIP response codes or the exact timestamp of the registration failure in a format that can be easily exported for long-term storage.
We have attempted to use the /api/v2/telephony/providers/edge/trunk/{trunkId}/registration endpoint to check real-time status, but this is clearly intended for operational checks rather than historical reporting. Furthermore, the Event Analytics API appears to have a retention policy that limits us to recent data, which is problematic for our quarterly compliance reviews. Given our setup involves complex failover logic where trunks switch between primary and secondary carriers, missing registration events could indicate a silent failure in our routing architecture. Are there any undocumented endpoints or alternative methods, such as leveraging the Data Action framework to push these specific registration events to an external data warehouse in real-time, that could solve this historical data gap? We are open to setting up a custom Lambda function if the native API does not support this level of historical detail, but we want to avoid reinventing the wheel if a native solution exists.