List routing decisions
curl --request GET \
--url https://api.getnexor.ai/api/public/master-workflows/{id}/router/decisions \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getnexor.ai/api/public/master-workflows/{id}/router/decisions"
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/decisions', 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/decisions",
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/decisions"
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/decisions")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/master-workflows/{id}/router/decisions")
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",
"decisions": [
{
"id": "7d1c2b3a-0000-4000-8000-000000000001",
"created_at": "2026-09-28T14:03:11.000Z",
"channel": "whatsapp",
"mode": "live",
"layer": "ai",
"outcome": "enrolled",
"applied": true,
"confidence": 0.91,
"workflow_id": "33333333-3333-4333-8333-333333333333",
"workflow_name": "Sales",
"static_workflow_id": null,
"message": "Hi, I want to know the price of the premium plan",
"elapsed_ms": 840,
"lead_id": "66666666-6666-4666-8666-666666666666",
"trace_id": null,
"correction": null
}
]
}{
"error": "invalid_limit"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "inbound_router_not_enabled"
}{
"error": "agent_group_not_found"
}{
"error": "internal_error"
}List routing decisions
See the latest inbound routing decisions of an agent: the step that decided, the task chosen, and any later correction.
GET
/
master-workflows
/
{id}
/
router
/
decisions
List routing decisions
curl --request GET \
--url https://api.getnexor.ai/api/public/master-workflows/{id}/router/decisions \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getnexor.ai/api/public/master-workflows/{id}/router/decisions"
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/decisions', 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/decisions",
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/decisions"
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/decisions")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/master-workflows/{id}/router/decisions")
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",
"decisions": [
{
"id": "7d1c2b3a-0000-4000-8000-000000000001",
"created_at": "2026-09-28T14:03:11.000Z",
"channel": "whatsapp",
"mode": "live",
"layer": "ai",
"outcome": "enrolled",
"applied": true,
"confidence": 0.91,
"workflow_id": "33333333-3333-4333-8333-333333333333",
"workflow_name": "Sales",
"static_workflow_id": null,
"message": "Hi, I want to know the price of the premium plan",
"elapsed_ms": 840,
"lead_id": "66666666-6666-4666-8666-666666666666",
"trace_id": null,
"correction": null
}
]
}{
"error": "invalid_limit"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "inbound_router_not_enabled"
}{
"error": "agent_group_not_found"
}{
"error": "internal_error"
}Decisions come newest first.
For totals over a period, use Get stats.
limit goes from 1 to 200 and defaults to 20.
| Field | Read it as |
|---|---|
layer | The step that decided. See How the router picks a task. |
outcome | What happened next, for example enrolled (the lead started in the task) or clarifying (waiting for the lead’s answer). |
applied | Whether the decision took effect. |
mode | live decisions can take effect. shadow decisions are only recorded. |
correction | Present when someone on the team, or a later transfer, moved the lead to another task. |
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.
Query Parameters
How many decisions to return, from 1 to 200. Default 20.
Required range:
1 <= x <= 200Last modified on September 28, 2026
⌘I