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"
}Listar decisiones de enrutamiento
Revisa las últimas decisiones de enrutamiento de un agente: el paso que decidió, la tarea elegida y si alguien la corrigió después.
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"
}Las decisiones vienen de la más reciente a la más antigua.
Para totales de un período, usa Consultar métricas.
limit va de 1 a 200 y por defecto es 20.
| Campo | Cómo leerlo |
|---|---|
layer | El paso que decidió. Consulta Cómo elige la tarea. |
outcome | Qué pasó después, por ejemplo enrolled (el lead empezó en la tarea) o clarifying (esperando la respuesta del lead). |
applied | Si la decisión tuvo efecto. |
mode | Las decisiones live pueden tener efecto. Las shadow solo se registran. |
correction | Aparece cuando alguien del equipo, o un traspaso posterior, movió el lead a otra tarea. |
Autorizaciones
API key for authentication. Keys are prefixed with nxr_live_.
Parámetros de ruta
Agent ID (master_workflow in the API). A malformed ID returns 400 invalid_group_id.
Parámetros de consulta
How many decisions to return, from 1 to 200. Default 20.
Rango requerido:
1 <= x <= 200Última modificación el 28 de septiembre de 2026
⌘I