Kroos Developers
Kroos Developers › Website chatbot

Usage policies & limits

Control who can use your chatbot, how much, at what cost — segments, budgets, workspaces, rate limits, abuse protection and the headers that report them.

The usage policy#

Read it with GET /api/tenant/usage-policy, replace it with PUT /api/tenant/usage-policy, and test changes with GET /api/tenant/usage-policy/simulate. Every saved version is kept and audited.

jsonDefault policy
{
  "segments": {
    "anonymous": { "tiers": ["kroos-lite"], "requestsPerMinute": 10, "messagesPerDay": 40, "usdPerDay": 0.05,
                   "features": { "two_business_match": true, "voice": false, "handoff": true },
                   "onLimit": ["require_login", "block"] },
    "customer":  { "tiers": ["kroos-lite", "kroos-standard"], "requestsPerMinute": 20, "messagesPerDay": 200, "usdPerDay": 0.5,
                   "features": { "two_business_match": true, "voice": true, "handoff": true },
                   "onLimit": ["downgrade_model", "handoff_to_human"] },
    "vip":       { "tiers": ["kroos-standard", "kroos-pro"], "requestsPerMinute": 30, "messagesPerDay": 1000, "usdPerDay": 3,
                   "features": { "two_business_match": true, "voice": true, "handoff": true },
                   "onLimit": ["downgrade_model", "handoff_to_human"] }
  },
  "abuse": { "extractionGuard": "standard", "strikesToThrottle": 3, "strikesToBlock": 6, "decayMinutes": 60, "botChallenge": "adaptive" },
  "keys": { "autoRotateOnForeignOrigin": false },
  "workspace": { "usdPerMonth": 100 }
}

Rules#

  • An anonymous segment is required. Segment names are lowercase letters, digits and underscores.
  • anonymous can't include kroos-pro.
  • onLimit is tried in order: downgrade_model, require_login, handoff_to_human, block.
  • Voice minutes and concurrency live in the separate voice policy.

Abuse protection#

SettingMeaning
extractionGuardoff, standard or strict: detects visitors trying to copy your whole knowledge base.
strikesToThrottle / strikesToBlockStrikes from injection attempts and extraction; they decay after decayMinutes.
botChallengeoff, adaptive (suspicious traffic) or always_anonymous. A challenged request gets 429 abuse.challenge_required with a proof-of-work challenge; solve it and resend with pow. The widget does this automatically.

Review flagged visitors with GET /api/tenant/abuse, and set per-user enforcement with POST /api/tenant/abuse or the admin API.

Workspaces#

Workspaces separate usage (for example per brand, site or client). Create with POST /api/tenant/workspaces, update with PUT /api/tenant/workspaces/:id. Each has:

  • a monthly spend limit,
  • an allow-list of model tiers,
  • a zero-data-retention flag,
  • limiter values (requests, input and output tokens per minute, tokens per day, matches and handoffs per hour…), capped by your organization's tier.

Response headers#

JSON answers from the website chatbot API include:

HeaderMeaning
kroos-workspace-idThe workspace that was charged
kroos-ratelimit-requests-limit / -remaining / -resetRequests per minute
kroos-ratelimit-input-tokens-*, kroos-ratelimit-output-tokens-*Token budgets per minute
kroos-spend-remaining-usdSpend left before the workspace or organization cap
kroos-enduser-budget-remainingWhat this end user has left today

Streaming responses can't carry headers after they start; use the JSON endpoint if you need them.

Credits and tiers#

Platform usage is prepaid with credits (or invoiced from the Scale tier). New organizations get a starting credit. Your tier — Evaluation, Start, Build, Scale, Enterprise — raises limits automatically as your history grows; Scale needs a verified domain and business verification. When credits run out, the API answers 402 billing.credits_exhausted, except on the website chatbot, which winds down politely and offers a handoff at no cost (running out of usage). Manage everything in Console → Billing & limits or GET /api/tenant/billing.

Last updated 2026-12-03