I’m trying to automate the creation of outbound contact lists using the Genesys Cloud API. The goal is to feed these lists into our New Relic dashboards for monitoring campaign health, but the initial POST request keeps failing.
Here is the JSON payload I’m sending to /api/v2/outbound/contactlists:
{
"name": "Q3-Test-List",
"description": "Automated test list",
"contacts": [
{
"phoneNumber": "+15550199999",
"attributes": {
"segment": "premium"
}
}
]
}
The response comes back with a 400 Bad Request and this error body:
{
"errors": [
{
"code": "INVALID_VALUE",
"message": "The value is not valid."
}
]
}
The authorization header is correct since I can fetch existing lists without issue. I’ve checked the phone number format and it looks standard. Is there a hidden requirement for the contacts array structure or a specific field I’m missing that causes this generic INVALID_VALUE error?