API referenceSections

What the signed-in user may do with the assistant here

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

What the signed-in user may do with the assistant here (ADR 0161): on or why not, model, this month's use and budget

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired

Responses

200 Access

Content type: application/json

  • available boolean required
  • reason string optional
    Allowed values: "off" "opted_out" "resellers_off" "customers_off" "not_in_plan"
  • model string required
  • model_label string required
  • allow_writes boolean required
  • acknowledged boolean required

    The signed-in user read the notice shown before first use

  • notice_version 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

  • budget integer required

    Monthly tokens for this account; 0 is no limit

  • retention_days integer required
  • opted_out boolean required
  • can_manage boolean required

    May turn the assistant off for this account

  • mcp boolean required
Example
{
  "available": true,
  "reason": "off",
  "model": "string",
  "model_label": "string",
  "allow_writes": true,
  "acknowledged": true,
  "notice_version": "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
  },
  "budget": 0,
  "retention_days": 0,
  "opted_out": true,
  "can_manage": true,
  "mcp": true
}

default Error

Content type: application/json

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