Kroos Developers
Kroos Developers › APIs

Admin API

Automate usage reporting, cost, spend and rate limits, usage policies, end-user overrides and enforcement, key rotation and abuse events with an admin key.

Base: https://kroos.ai/v1. Create an admin key with POST /api/tenant/keys/admin, then:

bash
curl -s "https://kroos.ai/v1/organizations/usage?group_by=workspace,meter&from=2026-11-01" \
  -H "authorization: Bearer kroos_ak_..."

Organization#

RequestPurpose
GET /v1/organizations/usage?group_by=&from=&to=Usage grouped by up to three of workspace, segment, user, model, meter, day
GET /v1/organizations/cost_report?group_by=&from=&to=Cost in USD, with a month-end forecast
PUT /v1/organizations/spend_limit{ "usd": 500 } monthly organization cap

Workspaces#

RequestPurpose
GET /v1/workspaces/:id/rate_limitsCurrent limiter values and the caps from your tier
PUT /v1/workspaces/:id/rate_limits{ "requests_per_minute": 300, "tokens_per_day": 2000000, … }
PUT /v1/workspaces/:id/spend_limit{ "usd": 200 }
POST /v1/workspaces/:id/usage_policies?dry_run=trueValidate (or save) a usage policy
GET /v1/workspaces/:id/usage_policies/:pid/simulate?segment=customerWhat a visitor in a segment would get

End users#

:sub is the sub from your end-user tokens.

RequestPurpose
GET /v1/end_users/:sub/usageMessages, spend and budget remaining
PUT /v1/end_users/:sub/overrides{ "overrides": { "messagesPerDay": 500 }, "expiresAt": "2026-12-31T00:00:00Z" }
POST /v1/end_users/:sub/enforcement{ "action": "throttle" | "suspend" | "block" | "watch" | "restore", "reason": "…" }

Keys and abuse#

RequestPurpose
POST /v1/api_keys/:id/rotateRotate (new key returned once)
POST /v1/api_keys/:id/revokeRevoke
GET /v1/abuse/events?type=Abuse, key-misuse and enforcement events

Reports in the console#

The same data appears in Console → Billing & limits, with CSV export, per-workspace and per-segment views, and alerts at 50, 75 and 90% of limits.

Last updated 2026-12-03