API referenceSections

Turn the assistant off (or back on) for this account; account administrators (member.invite)

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

PUT /api/v1/tenants/{tid}/assistant/tenant-settings

Turn the assistant off (or back on) for this account; account administrators (member.invite). Audited as assistant.tenant_settings

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • no other properties
  • opted_out boolean required
Example
{
  "opted_out": true
}

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