Routing Studio
Record a Routing Correction
Submit a playground ‘Reroute’ to teach Theo where the global classifier went wrong.
POST
Record a Routing Correction
Records a single routing correction — a turn where the developer disagreed with the resolved mode and supplied the mode they expected. Theo keeps the last 30 days of corrections per caller and clusters them byDocumentation Index
Fetch the complete documentation index at: https://docs.hitheo.ai/llms.txt
Use this file to discover all available pages before exploring further.
expected_mode; once a cluster crosses the threshold, the playground surfaces an “I noticed a pattern” toast and the developer can ask Theo to suggest a rule derived from the cluster.
Corrections are personal-or-team scoped (matching the caller’s active org context) so a personal correction never triggers a team-level suggestion banner.
Authentication
Requires a Bearer token with thebilling API key scope. Idempotent — the same Idempotency-Key header replays the same response.
Body
The prompt that produced the unexpected mode. 1–4096 chars. Vendor-name scrubbed at the service layer.
The Theo mode the developer expected (e.g.
"think", "image", "insurance_quote").Optional message id of the turn the correction is attached to. ≤128 chars.
Request Examples
curl
Response
pattern_suggestion_available is true, call POST /api/v1/routing-preferences/suggest-rule with the matching expected_mode to receive a deterministic regex derived from the cluster.
Errors
400 routing_correction_invalid— Generic shape failure.400 routing_correction_vendor_name— Prompt mentions an upstream provider name (Claude, OpenAI, etc.).400 routing_correction_invalid_mode—expected_modeisn’t a known Theo mode.
Record a Routing Correction
