List routing rules
curl --request GET \
--url https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"agent_group_id": "11111111-1111-4111-8111-111111111111",
"rules": [
{
"id": "9b2f7c1e-0000-4000-8000-000000000001",
"position": 0,
"name": "Existing customers",
"conditions": [
{
"field": "first_message_text",
"operator": "regex",
"value": "(my order|tracking|refund)"
}
],
"target_workflow_id": "33333333-3333-4333-8333-333333333333",
"is_active": true
}
]
}{
"error": "invalid_group_id"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "inbound_router_not_enabled"
}{
"error": "agent_group_not_found"
}{
"error": "internal_error"
}List routing rules
List the rules the inbound router checks, in priority order, before the AI picks a task.
GET
/
master-workflows
/
{id}
/
router
/
rules
List routing rules
curl --request GET \
--url https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/master-workflows/{id}/router/rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"agent_group_id": "11111111-1111-4111-8111-111111111111",
"rules": [
{
"id": "9b2f7c1e-0000-4000-8000-000000000001",
"position": 0,
"name": "Existing customers",
"conditions": [
{
"field": "first_message_text",
"operator": "regex",
"value": "(my order|tracking|refund)"
}
],
"target_workflow_id": "33333333-3333-4333-8333-333333333333",
"is_active": true
}
]
}{
"error": "invalid_group_id"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "inbound_router_not_enabled"
}{
"error": "agent_group_not_found"
}{
"error": "internal_error"
}Rules are checked in
position order, before the AI. The first active rule whose conditions all match sends the conversation to its target_workflow_id. Rules with is_active: false stay saved but are skipped.
To change the rules, send the complete list to Replace routing rules.Authorizations
API key for authentication. Keys are prefixed with nxr_live_.
Path Parameters
Agent ID (master_workflow in the API). A malformed ID returns 400 invalid_group_id.
Last modified on September 28, 2026
⌘I