Routing Studio
List Routing Preferences
List every Routing Studio preference visible to the caller.
GET
/
api
/
v1
/
routing-preferences
List Routing Preferences
curl --request GET \
--url https://api.example.com/api/v1/routing-preferencesimport requests
url = "https://api.example.com/api/v1/routing-preferences"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/routing-preferences', 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/v1/routing-preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/v1/routing-preferences"
req, _ := http.NewRequest("GET", url, nil)
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/v1/routing-preferences")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/routing-preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"routing_preferences": [
{}
]
}Returns every preference authored by the caller plus every team-scoped preference in the active organization. Each preference bundles a set of keyword rules, few-shot examples, and per-mode confidence-floor overrides that bias Theo’s routing engine for the caller’s domain.
Hidden per-key preferences (the rows backing the per-key routing-rules surface) are excluded from this listing — manage those via
/api/v1/keys/{id}/routing-rules instead.
Authentication
Requires a Bearer token with thebilling API key scope. See Authentication.
Request Examples
curl https://www.hitheo.ai/api/v1/routing-preferences \
-H "Authorization: Bearer $THEO_API_KEY"
const prefs = await theo.routingPreferences.list();
Response
object[]
Array of preference objects. Each preference includes
id, name, description, user_id, org_id, enabled, is_default, rules, examples, and confidence_floor_overrides.Example Response
{
"routing_preferences": [
{
"id": "1f4f2c1a-22ce-4b07-9c0b-9c4f4b9b1d2e",
"name": "ContractIQ Legal",
"description": "Contract terms get the analytical engine.",
"user_id": "user_abc",
"org_id": null,
"enabled": true,
"is_default": false,
"rules": [
{
"id": "r_a4b8c01x9y",
"pattern": "\\b(clause|provision|indemnity|warranty)\\b",
"target_mode": "think",
"confidence": 0.92,
"description": "Contract terms get the analytical engine."
}
],
"examples": [
{ "prompt": "Look at this clause", "expected_mode": "think" }
],
"confidence_floor_overrides": {
"think": 0.65
}
}
]
}
Was this page helpful?
List Routing Preferences
curl --request GET \
--url https://api.example.com/api/v1/routing-preferencesimport requests
url = "https://api.example.com/api/v1/routing-preferences"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/routing-preferences', 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/v1/routing-preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/v1/routing-preferences"
req, _ := http.NewRequest("GET", url, nil)
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/v1/routing-preferences")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/routing-preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"routing_preferences": [
{}
]
}