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.
{
"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
anonymoussegment is required. Segment names are lowercase letters, digits and underscores. anonymouscan't includekroos-pro.onLimitis tried in order:downgrade_model,require_login,handoff_to_human,block.- Voice minutes and concurrency live in the separate voice policy.
Abuse protection#
| Setting | Meaning |
|---|---|
extractionGuard | off, standard or strict: detects visitors trying to copy your whole knowledge base. |
strikesToThrottle / strikesToBlock | Strikes from injection attempts and extraction; they decay after decayMinutes. |
botChallenge | off, 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:
| Header | Meaning |
|---|---|
kroos-workspace-id | The workspace that was charged |
kroos-ratelimit-requests-limit / -remaining / -reset | Requests per minute |
kroos-ratelimit-input-tokens-*, kroos-ratelimit-output-tokens-* | Token budgets per minute |
kroos-spend-remaining-usd | Spend left before the workspace or organization cap |
kroos-enduser-budget-remaining | What 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.