abundant-father-33863
05/21/2026, 5:05 AMtall-airline-16756
05/21/2026, 5:05 AMtall-airline-16756
05/21/2026, 5:06 AMrule, not dispatch_rule.
Could you paste the exact JSON/YAML payload you’re sending (redact any sensitive IDs)? If you prefer, try this example structure and let me know if the error persists:
{
"trunk_ids": [
"trunk-id"
],
"rule": {
"dispatchRuleIndividual": {
"roomPrefix": "call"
}
}
}
If you share your payload, I’ll point out the exact change needed.
, with interactive elementsabundant-father-33863
05/21/2026, 5:10 AMtall-airline-16756
05/21/2026, 5:11 AMdispatch_rule key; the API expects the top-level fields directly and the rule object must be named rule. Move name, trunk_ids, and roomConfig up one level and remove dispatch_rule. Example correct payload:
{
"name": "Support First Trunk Dispatch",
"trunk_ids": [
"ST_iSuevFgT6ZKc"
],
"roomConfig": {
"agents": [
{
"agentName": "support_plbot",
"metadata": ""
}
]
},
"rule": {
"dispatchRuleIndividual": {
"roomPrefix": "spl-"
}
}
}
Send that and the error should go away. If it doesn't, paste the exact request/response (with IDs redacted) and I’ll keep troubleshooting.
, with interactive elementsabundant-father-33863
05/21/2026, 5:12 AM