Agent recommenders
List the subagent routers.
Enter your API key here (sent as Otari-Key header).
Successful Response
Every stored subagent router, oldest first.
GET /api/v1/routing/recommenders HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
Successful Response
{
"data": [
{
"api_base": "text",
"api_key_last4": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"enabled": true,
"has_api_key": true,
"id": "123e4567-e89b-12d3-a456-426614174000",
"input_price_per_million": 1,
"model": "text",
"output_price_per_million": 1,
"provider": "text",
"updated_at": "2026-01-01T00:00:00.000Z"
}
]
}Add a subagent router: a decision model, its key, and the prices a recommendation is charged at.
The first router added is switched on; a later one waits to be switched on in place of the one that is.
Enter your API key here (sent as Otari-Key header).
Add a subagent router. The first one added is switched on; a later one waits to be.
Root URL of the provider; blank for its own.
Stored encrypted, never returned.
0The decision model, as the provider names it.
0The decision provider: typesafe, openrouter or llamacpp.
Successful Response
One stored subagent router, known by its provider, model and the tail of its key.
Validation Error
POST /api/v1/routing/recommenders HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"api_base": "text",
"api_key": "text",
"input_price_per_million": 0,
"model": "text",
"output_price_per_million": 0,
"provider": "text"
}{
"api_base": "text",
"api_key_last4": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"enabled": true,
"has_api_key": true,
"id": "123e4567-e89b-12d3-a456-426614174000",
"input_price_per_million": 1,
"model": "text",
"output_price_per_million": 1,
"provider": "text",
"updated_at": "2026-01-01T00:00:00.000Z"
}Change a subagent router, or switch it on in place of the one that is.
An omitted field keeps its stored value, the key included while the provider and the API base stay the same.
Enter your API key here (sent as Otari-Key header).
Change a subagent router. An omitted field keeps its stored value.
Omitting api_key keeps the stored key while the provider and the API
base stay the same, so a price change never has to re-send a secret. A new
provider or address needs its own key, unless it is a self-hosted server
that takes none. A blank api_base goes back to the provider's own
address. Switching one on switches every other one off.
Successful Response
One stored subagent router, known by its provider, model and the tail of its key.
Validation Error
PATCH /api/v1/routing/recommenders/{recommender_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 141
{
"api_base": "text",
"api_key": "text",
"enabled": true,
"input_price_per_million": 1,
"model": "text",
"output_price_per_million": 1,
"provider": "text"
}{
"api_base": "text",
"api_key_last4": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"enabled": true,
"has_api_key": true,
"id": "123e4567-e89b-12d3-a456-426614174000",
"input_price_per_million": 1,
"model": "text",
"output_price_per_million": 1,
"provider": "text",
"updated_at": "2026-01-01T00:00:00.000Z"
}Remove a subagent router and its key. With none left, no recommendation is served.
Enter your API key here (sent as Otari-Key header).
Successful Response
No content
Validation Error
DELETE /api/v1/routing/recommenders/{recommender_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?
