Just noticed that the Agent Scripting API is rejecting our custom SIP header injection attempts for BYOC trunks in the APAC region. Specifically, POST /api/v2/interaction-callbacks/agent-scripting returns a 400 Bad Request when we try to push carrier-specific routing data into the outbound dialing flow from our Singapore trunks.
The payload structure matches the documentation, but the error response indicates a schema validation failure on the customHeaders object. This is peculiar because standard Genesys Cloud trunks accept this same payload without issue. We are managing 15 BYOC trunks across multiple regions, and this failure is isolated to the Singapore endpoint.
{
"code": "bad.request",
"message": "The request body was not valid",
"errors": [
{
"message": "Invalid structure for customHeaders in BYOC context"
}
]
}
Is there a known limitation or specific configuration required for BYOC trunks to support context injection via this endpoint? We have verified the SIP credentials and outbound routing rules, which appear correct. The failover logic seems intact, but the API rejection prevents us from leveraging our carrier-specific analytics. Any insights on whether this is a regional API restriction or a configuration quirk we are missing?