Sign inGet Started

List Apple Messages for Business routing rules

GET
/v1/amb/routing-rules
const result = await bird.amb.routingRules.list({
  business_account_id: "abz_01krdgeqcxet5s7t44vh8rt9mg",
});
console.log(result);
响应200
{
  "data": [
    {
      "created_at": "2026-05-20T09:14:52Z",
      "updated_at": "2026-05-25T16:42:01Z",
      "id": "arr_01krdgeqcxet5s7t44vh8rt9mg",
      "business_account_id": "abz_01krdgeqcxet5s7t44vh8rt9mg",
      "match_kind": "intent",
      "match_intent_id": "order_status",
      "match_group_id": "support",
      "queue": "billing",
      "precedence": 10,
      "is_default": false
    }
  ]
}

Returns the workspace's Apple Messages for Business routing rules, highest precedence first. Rules run when a conversation is created, when a closed conversation reopens, and when a customer writes to a resolved conversation, matching its group and intent to a queue. A message without a group or intent routes on the conversation's stored values. Later messages while the conversation is open in the inbox retain its queue.

查询参数

business_account_idstring

Keep only routing rules belonging to this business. Omit to return rules across all businesses in the workspace.

响应载荷

data
array of object
必填

The workspace's routing rules, optionally filtered by business, highest precedence first and ties broken by id. Rules are evaluated within their business in this order. The set is returned in full; this list is not paginated.

显示子属性