For the complete documentation index, see llms.txt. This page is also available as Markdown.

Agent recommenders

List Agent Recommenders

get

List the subagent routers.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

Every stored subagent router, oldest first.

get/api/v1/routing/recommenders
GET /api/v1/routing/recommenders HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

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"
    }
  ]
}

Create Agent Recommender

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Add a subagent router. The first one added is switched on; a later one waits to be.

api_basestring · max: 1024 · nullableOptional

Root URL of the provider; blank for its own.

api_keystring · min: 1 · max: 1024 · nullableOptional

Stored encrypted, never returned.

input_price_per_millionnumber · max: 1000000OptionalDefault: 0
modelstring · min: 1 · max: 255Required

The decision model, as the provider names it.

output_price_per_millionnumber · max: 1000000OptionalDefault: 0
providerstring · min: 1 · max: 32Required

The decision provider: typesafe, openrouter or llamacpp.

Responses
201

Successful Response

application/json

One stored subagent router, known by its provider, model and the tail of its key.

api_basestring · nullableRequired
api_key_last4string · nullableRequired
created_atstring · date-timeRequired
enabledbooleanRequired
has_api_keybooleanRequired
idstring · uuidRequired
input_price_per_millionnumberRequired
modelstringRequired
output_price_per_millionnumberRequired
providerstringRequired
updated_atstring · date-time · nullableRequired
post/api/v1/routing/recommenders
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"
}

Update Agent Recommender

patch

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
recommender_idstring · uuidRequired
Body

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.

api_basestring · max: 1024 · nullableOptional
api_keystring · min: 1 · max: 1024 · nullableOptional
enabledboolean · nullableOptional
input_price_per_millionnumber · max: 1000000 · nullableOptional
modelstring · min: 1 · max: 255 · nullableOptional
output_price_per_millionnumber · max: 1000000 · nullableOptional
providerstring · min: 1 · max: 32 · nullableOptional
Responses
200

Successful Response

application/json

One stored subagent router, known by its provider, model and the tail of its key.

api_basestring · nullableRequired
api_key_last4string · nullableRequired
created_atstring · date-timeRequired
enabledbooleanRequired
has_api_keybooleanRequired
idstring · uuidRequired
input_price_per_millionnumberRequired
modelstringRequired
output_price_per_millionnumberRequired
providerstringRequired
updated_atstring · date-time · nullableRequired
patch/api/v1/routing/recommenders/{recommender_id}
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"
}

Delete Agent Recommender

delete

Remove a subagent router and its key. With none left, no recommendation is served.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
recommender_idstring · uuidRequired
Responses
204

Successful Response

No content

delete/api/v1/routing/recommenders/{recommender_id}
DELETE /api/v1/routing/recommenders/{recommender_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

Last updated

Was this helpful?