Brume · Docs
API

Routing

Tenant-level model routing policy.

GET
/api/tenants/{path_tenant_id}/routing

Return tenant routing profiles and usage types to routing administrators.

Path Parameters

path_tenant_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/string/routing"
{}
GET
/api/tenants/{path_tenant_id}/routing/ledgers

The tenant's ledgers (via its 1:1 customer), for the editor's « Crédits Brume » source selector. Read-only; does not create the customer (the Credits page handles that in P3-6). Empty list if absent.

Path Parameters

path_tenant_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/string/routing/ledgers"
{}
POST
/api/tenants/{path_tenant_id}/routing/profiles

Create an empty tenant routing profile; duplicate names are rejected.

Path Parameters

path_tenant_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/tenants/string/routing/profiles" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{}
DELETE
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}

Delete an unassigned, unlocked, non-default tenant profile.

Path Parameters

profile_id*string
path_tenant_id*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/tenants/string/routing/profiles/string"
{}
PUT
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}

Rename an unlocked, non-default profile owned by the tenant.

Path Parameters

profile_id*string
path_tenant_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/tenants/string/routing/profiles/string" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{}
PUT
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}/default

Make an existing tenant profile the default routing profile.

Path Parameters

profile_id*string
path_tenant_id*string

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/tenants/string/routing/profiles/string/default"
{}
POST
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}/duplicate

Copy a tenant profile and its routing entries under a generated name.

Path Parameters

profile_id*string
path_tenant_id*string

Response Body

application/json

application/json

curl -X POST "https://example.com/api/tenants/string/routing/profiles/string/duplicate"
{}
PUT
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}/entries/{usage_type}

Replace ordered routing entries and requeue provider health checks.

Path Parameters

profile_id*string
usage_type*string
path_tenant_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/tenants/string/routing/profiles/string/entries/string" \  -H "Content-Type: application/json" \  -d '{    "entries": [      {        "provider": "string"      }    ]  }'
{}
PUT
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}/model-usages/{usage_type}

Assign an ordered list of managed model configs to a (profile, usage) pair. Profile sealing (404). Derives the legacy policy_entries; resolve() (flag OFF) returns the expected paths.

Path Parameters

profile_id*string
usage_type*string
path_tenant_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/tenants/string/routing/profiles/string/model-usages/string" \  -H "Content-Type: application/json" \  -d '{    "model_config_ids": [      "string"    ]  }'
{}
POST
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}/personalize

Return or create an editable personal copy of the tenant profile.

Path Parameters

profile_id*string
path_tenant_id*string

Response Body

application/json

application/json

curl -X POST "https://example.com/api/tenants/string/routing/profiles/string/personalize"
{}
PUT
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}/setup-embedding

Initial choice of the vector space, before any workspace pin.

Path Parameters

profile_id*string
path_tenant_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/tenants/string/routing/profiles/string/setup-embedding" \  -H "Content-Type: application/json" \  -d '{    "model_config_id": "string"  }'
{}
GET
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}/sovereign-filter

Read the filter calibration carried by a policy profile.

Path Parameters

profile_id*string
path_tenant_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/string/routing/profiles/string/sovereign-filter"
{}
PUT
/api/tenants/{path_tenant_id}/routing/profiles/{profile_id}/sovereign-filter

Validate and replace the profile's sovereign calibration.

Path Parameters

profile_id*string
path_tenant_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/tenants/string/routing/profiles/string/sovereign-filter" \  -H "Content-Type: application/json" \  -d '{    "options": {},    "triggering_categories": [      "string"    ]  }'
{}
GET
/api/tenants/{path_tenant_id}/routing/services

Coverage per external SERVICE (Serper/Composio/Daytona) — READ ONLY, for the install surface. No debit, no write.

Mirror of the unified decision head resolve_serving: for each service, served_by_instance = is_brume_cloud (cloud → the call runs on Brume Credit; self-host → to be covered by a key). ⚠️ "two flags": this field is the REAL coverage condition (mirror of resolve_serving), NEVER a blind debit flag. Traces the read-only neutrality of É4: resolve_serving DECIDES who serves, it never DEBITS.

Path Parameters

path_tenant_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/string/routing/services"
{}