Trying to initiate an outbound call via the Genesys Cloud API to inject a trace context for OpenTelemetry. The OTel collector is running in Asia/Manila and sending the request directly.
The call is failing with a 400 Bad Request. The error payload says the participant address is malformed, but the phone number looks fine.
Here is the JSON payload I’m sending:
{
"from": {
"phoneNumber": "+15550199",
"id": "12345678-1234-1234-1234-123456789012"
},
"to": {
"phoneNumber": "+639171234567"
},
"type": "call"
}
The from ID is a valid user ID in the org. The to number is a valid mobile format. I’ve tried stripping the + and using E.164 format explicitly, but it still throws the same error.
Is there a specific formatting requirement for the phoneNumber field that I’m missing? Or does the from object need something else attached for trace context injection to work? The docs are pretty sparse on the exact schema validation rules here.