Trying to spin up an outbound call on behalf of an agent using POST /api/v2/conversations/calls. The docs say I need to pass the routing object with type set to queue and the queueId. I’ve got the queueId from our test environment, but the endpoint keeps throwing a 400 Bad Request.
Here’s the payload I’m sending:
{
"from": {
"phoneNumber": "+15551234567"
},
"to": [
{
"phoneNumber": "+15559876543"
}
],
"routing": {
"type": "queue",
"queueId": "abc123-def456-ghi789"
}
}
The error message is pretty generic: "message": "Invalid routing configuration". I’ve double-checked that the queue exists and is active. I’m using the standard OAuth token from our service account, which has the call:center scope. I’m working in Chicago, so timezone shouldn’t be messing with the startTime if I were using one, but I’m omitting it for now.
- Genesys Cloud API v2
- Service account with
call:centerandqueue:readscopes - Queue is open and has agents logged in
- Tried with and without
metadata
Does the queueId need to match a specific routing strategy? Or is there a hidden requirement for the from number to be registered in the platform first? I’m stuck on this one.