List chat routing rules
Returns your chat routing rules, the default rule first, then by name: the rules that assign the chats a chat or modal link starts. Pass a rule's chatRoutingId to POST and PATCH /v1/magic-links, or in chatRoutingIds to GET /v1/magic-links.
These are not the routing rules of GET /v1/routing-rules: those route form and workflow leads through POST /v1/route, and their routingId is never a chatRoutingId.
ApiKeyAuthx-api-key<token>Your Knock API key. Ask your Knock account team for one: a key with the Enrichment API role to enrich and route leads and find warm intros, the Viewer role to read chats, meetings, routing rules, FAQs, analytics, magic links, meeting routing rules, marketing cards and members, the Admin, Editor or AI Manager role to change FAQs, the Admin, Editor or Partner Contributor role to create marketing cards and wrap chat links, or the Admin role to set the working hours of your members.
limit?integerPage size.
1 <= value <= 10020offset?integerNumber of rules to skip.
0 <= value0A page of chat routing rules.
application/json- response
A page of chat routing rules.
total*integerNumber of items that match the query, across all pages.
limit*integerPage size of this page.
offset*integerNumber of items skipped before this page.
items*array<>Chat routing rules, the default rule first, then by name.
curl -X GET 'https://app.knock-ai.com/v1/chat-routing-rules' \ -H 'x-api-key: <YOUR_API_KEY>'{ "total": 1, "limit": 50, "offset": 0, "items": [ { "chatRoutingId": "3c5e7a9b-1d2f-4a6b-8c0d-2e4f6a8b0c1d", "name": "Inbound demo requests", "isDefault": true } ]}