curl --request GET \
--url https://api-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages', 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-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "0f44f6d1-f466-4367-bf25-37ce49b0d9c8",
"agentId": "38f62697-0f4b-49bc-8a0c-67256f5af6ff",
"blueprintId": "c09f3fa9-5082-4b0e-96b8-7426e672d88a",
"name": "welcome",
"title": "Bienvenida",
"goalPrompt": "Saluda, valida que el lead hable español y confirma disponibilidad para asistirlo.",
"promptInstructions": [
"Identifica el idioma del usuario",
"Confirma que está listo para la siguiente etapa"
],
"order": 0,
"triggers": [
{
"id": "72bf4f36-9d60-4f2f-94d9-5a52e5411ae9",
"stageId": "0f44f6d1-f466-4367-bf25-37ce49b0d9c8",
"blueprintId": "c09f3fa9-5082-4b0e-96b8-7426e672d88a",
"condition": {
"type": "intent",
"value": "schedule_call"
},
"nextStageName": "schedule_call",
"createdAt": "2025-10-01T14:07:11.000Z",
"updatedAt": "2025-10-01T14:07:11.000Z"
}
],
"metadata": {
"channel": "voice"
},
"createdAt": "2025-10-01T14:07:11.000Z",
"updatedAt": "2025-10-05T09:32:42.000Z"
},
{
"id": "1272c8b5-8426-41c8-a42b-607d0131800a",
"agentId": "38f62697-0f4b-49bc-8a0c-67256f5af6ff",
"blueprintId": "c09f3fa9-5082-4b0e-96b8-7426e672d88a",
"name": "schedule_call",
"title": "Agendamiento",
"goalPrompt": "Confirma horarios disponibles y registra la cita en el CRM.",
"promptInstructions": [
"Verifica el calendario del equipo",
"Registra la cita en el CRM"
],
"order": 1,
"triggers": [],
"metadata": {
"channel": "voice"
},
"createdAt": "2025-10-01T14:10:37.000Z",
"updatedAt": "2025-10-04T22:18:09.000Z"
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 2,
"hasPrevious": false,
"hasNext": false
}
}{
"code": "BLUEPRINT_NOT_FOUND",
"message": "El agente no tiene un blueprint editable asignado"
}Listar stages de un blueprint del agente
Devuelve los stages configurados en el blueprint indicado, incluyendo prompts y triggers
asociados. El blueprintId se obtiene de GET /v1/agents/{agentId}/blueprints. La respuesta
es paginada para facilitar la edición incremental desde el frontend.
El orden no es configurable: esta ruta sólo acepta page, limit y filter, y
mandar sort responde 400. El meta.sort de la respuesta es informativo —anuncia el
criterio fijo que aplicó el servidor—, no el eco de un parámetro.
curl --request GET \
--url https://api-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages', 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-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-prod.studio.getsupervisor.ai/v1/agents/{agentId}/blueprints/{blueprintId}/stages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "0f44f6d1-f466-4367-bf25-37ce49b0d9c8",
"agentId": "38f62697-0f4b-49bc-8a0c-67256f5af6ff",
"blueprintId": "c09f3fa9-5082-4b0e-96b8-7426e672d88a",
"name": "welcome",
"title": "Bienvenida",
"goalPrompt": "Saluda, valida que el lead hable español y confirma disponibilidad para asistirlo.",
"promptInstructions": [
"Identifica el idioma del usuario",
"Confirma que está listo para la siguiente etapa"
],
"order": 0,
"triggers": [
{
"id": "72bf4f36-9d60-4f2f-94d9-5a52e5411ae9",
"stageId": "0f44f6d1-f466-4367-bf25-37ce49b0d9c8",
"blueprintId": "c09f3fa9-5082-4b0e-96b8-7426e672d88a",
"condition": {
"type": "intent",
"value": "schedule_call"
},
"nextStageName": "schedule_call",
"createdAt": "2025-10-01T14:07:11.000Z",
"updatedAt": "2025-10-01T14:07:11.000Z"
}
],
"metadata": {
"channel": "voice"
},
"createdAt": "2025-10-01T14:07:11.000Z",
"updatedAt": "2025-10-05T09:32:42.000Z"
},
{
"id": "1272c8b5-8426-41c8-a42b-607d0131800a",
"agentId": "38f62697-0f4b-49bc-8a0c-67256f5af6ff",
"blueprintId": "c09f3fa9-5082-4b0e-96b8-7426e672d88a",
"name": "schedule_call",
"title": "Agendamiento",
"goalPrompt": "Confirma horarios disponibles y registra la cita en el CRM.",
"promptInstructions": [
"Verifica el calendario del equipo",
"Registra la cita en el CRM"
],
"order": 1,
"triggers": [],
"metadata": {
"channel": "voice"
},
"createdAt": "2025-10-01T14:10:37.000Z",
"updatedAt": "2025-10-04T22:18:09.000Z"
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 2,
"hasPrevious": false,
"hasNext": false
}
}{
"code": "BLUEPRINT_NOT_FOUND",
"message": "El agente no tiene un blueprint editable asignado"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Identificador del workspace multi-tenant. Obligatorio al autenticar con Authorization: Bearer, donde su ausencia devuelve 400 Workspace context is required. Con x-api-key es opcional: la llave ya identifica a su workspace y lo que mandes aquí se ignora.
Path Parameters
Identificador del agente
Identificador del blueprint del agente (se obtiene de GET /v1/agents/{agentId}/blueprints)
Query Parameters
Número de página (>= 1). Por defecto es 1.
x >= 1Tamaño de página (1..100). Por defecto 20.
1 <= x <= 100Expresión de filtros combinados generada con el API Query Builder.
Utiliza funciones como and(...), or(...), eq(...), like(...), etc. Consulta
docs/api-query-builder.md para la gramática completa y ejemplos adicionales.
Expresión string compatible con el API Query Builder. Soporta composición de funciones
(and, or) y operadores (eq, like, between, etc.) para filtrar resultados.
"and(eq(status,\"active\"),like(name,\"%ventas%\"))"
