Load a specific config version as a graph
curl --request GET \
--url https://api.example.com/api/airouter/versions/{version} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/airouter/versions/{version}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/airouter/versions/{version}', 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.example.com/api/airouter/versions/{version}",
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.example.com/api/airouter/versions/{version}"
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.example.com/api/airouter/versions/{version}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/airouter/versions/{version}")
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{
"version": 123,
"graph": {
"nodes": [
{
"id": "<string>",
"kind": "request",
"label": "<string>",
"position": {
"x": 0,
"y": 0
},
"role_gate": {
"router_role": "<string>",
"priority": 100
},
"content_role": {
"description": "<string>",
"operator": "AND",
"conditions": [
{
"type": "<string>",
"name": "<string>",
"params": {},
"operator": "AND",
"conditions": "<array>"
}
],
"plugins": [
{
"type": "<string>",
"configuration": {}
}
],
"priority": 50,
"selection_algorithm": "<string>",
"model_refs": [
{}
]
},
"model": {
"model": "<string>",
"api_format": "<string>",
"preferred_endpoints": [
"<string>"
],
"capabilities": [
"<string>"
],
"modality": "ar",
"quality_score": 123,
"pricing": {
"currency": "<string>",
"prompt_per_1m": 1,
"completion_per_1m": 1,
"cache_read_per_1m": 1,
"cache_write_per_1m": 1
},
"external_model_ids": {},
"access_key": "<string>",
"reasoning_family": "<string>",
"reasoning_effort": "<string>",
"max_tokens": 123,
"is_default": false,
"raw": {}
}
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>"
}
],
"role_bindings": [
{
"name": "<string>",
"role": "<string>",
"description": "<string>",
"subjects": [
{
"name": "<string>",
"kind": "Group"
}
]
}
],
"vllm_endpoints": [
{
"name": "<string>",
"type": "openai",
"address": "",
"port": 123,
"protocol": "<string>",
"api_key": "<string>",
"provider_profile": "<string>",
"base_url": "<string>",
"extra_headers": {},
"default_max_tokens": 123,
"prompt_caching": true,
"stream_upstream": true,
"token_exchange": "<string>",
"token_exchange_audience": "<string>",
"weight": 123,
"models": [
"<string>"
],
"raw": {}
}
],
"keyword_rules": [
{}
],
"jailbreak": [
{}
],
"pii": [
{}
],
"default_model": "<string>",
"default_reasoning_effort": "<string>",
"strategy": "<string>",
"force_routing": true,
"clear_route_cache": true,
"router_replay": {
"store_backend": "memory",
"ttl_seconds": 2592000,
"async_writes": true
},
"tools": {
"enabled": true,
"embedding": {
"endpoint": "<string>",
"model": "<string>",
"timeout_seconds": 20
}
},
"semantic_cache": {
"enabled": false,
"backend_type": "memory",
"similarity_threshold": 0.8,
"ttl_seconds": 3600,
"max_entries": 1000
},
"extras": {}
},
"raw_yaml": "<string>",
"created_at": "<string>",
"message": "<string>",
"author": "<string>"
}{
"error": "<string>",
"code": 500
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": "<string>",
"code": 500
}AI control plane
Load a specific config version as a graph
A historical snapshot, parsed back into the editable graph (secrets masked for the viewer role).
GET
/
api
/
airouter
/
versions
/
{version}
Load a specific config version as a graph
curl --request GET \
--url https://api.example.com/api/airouter/versions/{version} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/airouter/versions/{version}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/airouter/versions/{version}', 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.example.com/api/airouter/versions/{version}",
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.example.com/api/airouter/versions/{version}"
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.example.com/api/airouter/versions/{version}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/airouter/versions/{version}")
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{
"version": 123,
"graph": {
"nodes": [
{
"id": "<string>",
"kind": "request",
"label": "<string>",
"position": {
"x": 0,
"y": 0
},
"role_gate": {
"router_role": "<string>",
"priority": 100
},
"content_role": {
"description": "<string>",
"operator": "AND",
"conditions": [
{
"type": "<string>",
"name": "<string>",
"params": {},
"operator": "AND",
"conditions": "<array>"
}
],
"plugins": [
{
"type": "<string>",
"configuration": {}
}
],
"priority": 50,
"selection_algorithm": "<string>",
"model_refs": [
{}
]
},
"model": {
"model": "<string>",
"api_format": "<string>",
"preferred_endpoints": [
"<string>"
],
"capabilities": [
"<string>"
],
"modality": "ar",
"quality_score": 123,
"pricing": {
"currency": "<string>",
"prompt_per_1m": 1,
"completion_per_1m": 1,
"cache_read_per_1m": 1,
"cache_write_per_1m": 1
},
"external_model_ids": {},
"access_key": "<string>",
"reasoning_family": "<string>",
"reasoning_effort": "<string>",
"max_tokens": 123,
"is_default": false,
"raw": {}
}
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>"
}
],
"role_bindings": [
{
"name": "<string>",
"role": "<string>",
"description": "<string>",
"subjects": [
{
"name": "<string>",
"kind": "Group"
}
]
}
],
"vllm_endpoints": [
{
"name": "<string>",
"type": "openai",
"address": "",
"port": 123,
"protocol": "<string>",
"api_key": "<string>",
"provider_profile": "<string>",
"base_url": "<string>",
"extra_headers": {},
"default_max_tokens": 123,
"prompt_caching": true,
"stream_upstream": true,
"token_exchange": "<string>",
"token_exchange_audience": "<string>",
"weight": 123,
"models": [
"<string>"
],
"raw": {}
}
],
"keyword_rules": [
{}
],
"jailbreak": [
{}
],
"pii": [
{}
],
"default_model": "<string>",
"default_reasoning_effort": "<string>",
"strategy": "<string>",
"force_routing": true,
"clear_route_cache": true,
"router_replay": {
"store_backend": "memory",
"ttl_seconds": 2592000,
"async_writes": true
},
"tools": {
"enabled": true,
"embedding": {
"endpoint": "<string>",
"model": "<string>",
"timeout_seconds": 20
}
},
"semantic_cache": {
"enabled": false,
"backend_type": "memory",
"similarity_threshold": 0.8,
"ttl_seconds": 3600,
"max_entries": 1000
},
"extras": {}
},
"raw_yaml": "<string>",
"created_at": "<string>",
"message": "<string>",
"author": "<string>"
}{
"error": "<string>",
"code": 500
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": "<string>",
"code": 500
}Authorizations
OAuth2AuthorizationCodeBearerAPIKeyHeader
Response
Successful Response
A specific historical version, parsed back into a graph.
Was this page helpful?

