Skip to main content
GET
/
api
/
v1
/
routing-preferences
/
presets
List Preset Templates
curl --request GET \
  --url https://api.example.com/api/v1/routing-preferences/presets
import requests

url = "https://api.example.com/api/v1/routing-preferences/presets"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.example.com/api/v1/routing-preferences/presets', 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/presets",
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/presets"

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/presets")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/v1/routing-preferences/presets")

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
Returns the hand-curated preset templates the Routing Studio empty state offers as starter rule sets. Presets are read-only — applying one is a normal create preference call seeded with the preset’s rules, examples, and confidence_floor_overrides.

Authentication

Requires a Bearer token with the billing API key scope.

Request Examples

curl https://www.hitheo.ai/api/v1/routing-preferences/presets \
  -H "Authorization: Bearer $THEO_API_KEY"
// Use the raw HTTP client for now — preset listing is exposed at the
// REST surface and is typically consumed by the dashboard empty state.
const res = await fetch("https://www.hitheo.ai/api/v1/routing-preferences/presets", {
  headers: { Authorization: `Bearer ${process.env.THEO_API_KEY}` },
});
const { presets } = await res.json();

Response

Each preset includes id, name, tagline, description, rules, examples, and confidence_floor_overrides.
{
  "presets": [
    {
      "id": "pricing-questions",
      "name": "Pricing questions",
      "tagline": "Route pricing questions to the analytical engine.",
      "description": "Catches pricing-related keywords (pricing, cost, quote, plan, tier) and promotes to `think`.",
      "rules": [
        {
          "pattern": "\\b(price|pricing|cost|quote|tier|plan)\\b",
          "target_mode": "think",
          "confidence": 0.88,
          "description": "Pricing questions get the analytical engine."
        }
      ],
      "examples": [
        { "prompt": "What's the price of the enterprise plan?", "expected_mode": "think" }
      ],
      "confidence_floor_overrides": {}
    }
  ]
}