List assignment rules
Assignment Rules in order, with their conditions and the agent or group they assign to.
GET https://cotlet.dev/api/v1/freshchat/assignment-rules
Returns the rules from Admin > Assignment Rules in the order Freshchat applies them: the highest rule wins when several match, and rules run before IntelliAssign. Each rule shows its If conditions (message content, URL, source, visitor attributes, business hours or browser language) and its Then action. Use it to see what a rule already assigns before you route by hand. It needs an Admin or Account Owner.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/freshchat/assignment-rules \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("freshchat", "list_assignment_rules") const result = await cotlet.call('freshchat', 'list_assignment_rules'); cotlet call freshchat list_assignment_rules Example response
{
"rules": [
{
"position": 1,
"name": "Refunds and payments",
"enabled": true,
"conditions": [
"Message contains \"refund\" or \"payment\""
],
"assign_to": {
"group": "Billing"
}
},
{
"position": 2,
"name": "French visitors",
"enabled": true,
"conditions": [
"Browser language is French"
],
"assign_to": {
"group": "Support FR"
}
}
]
}