Just noticed that our custom reporting script is failing to pull SMS metadata for our BYOC trunks.
- Environment: Genesys Cloud AP-Southeast-1
- Trunks: 15 BYOC SIP trunks, mixed carriers
- API Endpoint:
/api/v2/analytics/message-details/query - SDK: Genesys Cloud Python SDK v1.0.45
- User Role: Admin with Analytics.Read scope
The issue arises specifically when filtering by from_number or to_number associated with our BYOC endpoints. Standard Genesys-provisioned numbers return data correctly. However, queries targeting BYOC numbers trigger a 400 Bad Request with the message: Invalid filter value for field 'message_type'.
We are attempting to correlate SMS delivery receipts with our SIP trunk failover logs. The error suggests the analytics engine does not recognize the message type associated with BYOC SMS traffic, or the filter syntax is incompatible with carrier-originated messages.
Has anyone successfully queried BYOC SMS details via the Analytics API? Are there specific scope requirements or alternative endpoints we should use for carrier-specific message metadata?