API referenceSections

The provider's assistant settings and this month's use per account; root tenant administrators

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/tenants/{tid}/assistant/settings

The provider's assistant settings and this month's use per account; root tenant administrators

Authentication: API key (Authorization: Bearer …) or session cookie __Host-panel_session.

Parameters

NameInTypeRequiredDescription
tidpathstringrequired

Responses

200 Settings

Content type: application/json

  • enabled boolean required
  • model string required
  • models array<AssistantModel> required
    • id string required
    • label string required
    • input_per_m number required
    • output_per_m number required
    • cache_read_per_m number required
    • cache_write_per_m number required
  • key_set boolean required
  • key_hint string required

    Last 4 characters of the saved key

  • notice_version string required
  • notice_accepted boolean required
  • notice_accepted_at string (date-time) | null optional
  • monthly_tokens integer required
  • tenant_budgets map<string, integer> required
  • allow_resellers boolean required
  • customers string required
    Allowed values: "none" "plans" "all"
  • allowed_plans array<string> required
  • allow_writes boolean required
  • retention_days integer required
  • mcp_enabled boolean required
  • mcp_allow_writes boolean required
  • month string required
  • usage array<object> required
    • tenant_id string required
    • tenant_name string required
    • usage AssistantUsage required
      • tenant_id string required
      • month string required

        YYYY-MM, UTC

      • requests integer required
      • input_tokens integer required
      • output_tokens integer required
      • cache_read_tokens integer required
      • cache_write_tokens integer required
      • cost_micro_usd integer required

        Estimate from list prices, in millionths of a US dollar

    • tokens integer required
    • budget integer required
Example
{
  "enabled": true,
  "model": "string",
  "models": [
    {
      "id": "string",
      "label": "string",
      "input_per_m": 0,
      "output_per_m": 0,
      "cache_read_per_m": 0,
      "cache_write_per_m": 0
    }
  ],
  "key_set": true,
  "key_hint": "string",
  "notice_version": "string",
  "notice_accepted": true,
  "notice_accepted_at": "2026-01-01T00:00:00Z",
  "monthly_tokens": 0,
  "tenant_budgets": {
    "key": 0
  },
  "allow_resellers": true,
  "customers": "none",
  "allowed_plans": [
    "string"
  ],
  "allow_writes": true,
  "retention_days": 0,
  "mcp_enabled": true,
  "mcp_allow_writes": true,
  "month": "string",
  "usage": [
    {
      "tenant_id": "string",
      "tenant_name": "string",
      "usage": {
        "tenant_id": "string",
        "month": "string",
        "requests": 0,
        "input_tokens": 0,
        "output_tokens": 0,
        "cache_read_tokens": 0,
        "cache_write_tokens": 0,
        "cost_micro_usd": 0
      },
      "tokens": 0,
      "budget": 0
    }
  ]
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required