Base: https://kroos.ai. Authenticate every request with your secret key:
curl -s https://kroos.ai/api/tenant -H "authorization: Bearer kroos_sk_..."GET /api/tenant returns your organization, power mode (and what's missing), domains, owners, origins, signing requirements and recent usage. GET /api/tenant/readiness returns the setup checklist, goals with their blockers, and console links.
Organization and owners#
| Request | Purpose |
|---|---|
POST /api/tenants | Create an organization (signed-in account, authorized: true to confirm authority; returns keys once) |
GET /api/tenant | Organization overview and power mode |
GET /api/tenant/readiness | Setup checklist and goals |
GET /api/tenant/owners · POST /api/tenant/owners · DELETE /api/tenant/owners/:id | Owners (work email on a verified domain; at least two are kept) |
POST /api/tenant/owners/:id/resend | Email a new verification code and link |
POST /api/tenant/owners/:id/verify | Confirm with the 6-digit code (signed-in account becomes the owner) |
GET /api/tenant/owners/me | Whether the signed-in account is a verified owner, and which requests need one |
GET /api/tenant/audit | Tamper-evident audit log |
POST /api/tenant/offboard | Leave Kroos: revoke keys, purge indexes, end agreements |
Verified owners#
Owners act on behalf of the organization. Each owner's email must be on one of the organization's DNS-verified domains, and the owner confirms it with a 6-digit code (valid 15 minutes) or a one-time link (valid 24 hours) sent in the same email. Confirming binds the owner to the signed-in Kroos account that confirmed it. If the domain stops being verified, the owner's authority pauses until it is verified again.
These requests need a signed-in verified owner (the session cookie from kroos.ai) as well as the secret key: signing policies, adding owners after the first is verified, removing owners, removing domains, issuing or rotating keys and the end-user secret, billing settings and credit purchases, federation agreements, government attestations, access attestations, marketplace applications and offboarding. Without one they return owner.sign_in_required (401) or owner.verification_required (403).
Members, roles and seats#
People join an organization by invitation, with a role. A role is a set of permissions: for each area (organization, members, billing, developers, domains, knowledge, channels, employees, analytics, audit, network) whether the person can view it, update it, or delete things in it. Members sign in to the Console with their own Kroos account; every request they make is checked against their role. Requests with the secret key have full access.
Owners (the creator and verified owners) don't use a seat. Every other member, and every pending invitation, uses one. Seats renew each month as part of the organization's bill: on Stripe when payments are connected, on the invoice for invoiced organizations, otherwise from prepaid credits. Changing seats is a two-step call: get a quote, then confirm with the quoted amount.
| Request | Purpose |
|---|---|
GET /api/tenant/me | The signed-in member's role and permissions |
GET /api/tenant/members | Members, pending invitations and seats |
PUT /api/tenant/members/:id · DELETE /api/tenant/members/:id | Change a member's role (role) · remove a member |
POST /api/tenant/invites · DELETE /api/tenant/invites/:id | Invite by email with a role (needs a free seat) · cancel an invitation |
GET /api/tenant/roles · POST /api/tenant/roles · PUT /api/tenant/roles/:id · DELETE /api/tenant/roles/:id | Built-in and custom roles (name, description, permissions such as ["knowledge.update", "analytics.view"]). Nobody can grant permissions they don't hold |
GET /api/tenant/seats | Seats: total, used, available, price, cycle and how they're paid |
POST /api/tenant/seats/quote | What adding (delta: 2) or removing (delta: -1) seats costs now (prorated) and each cycle |
POST /api/tenant/seats | Change seats: delta and confirmUsd (the quoted proratedUsd). Returns a Stripe Checkout url the first time when payments are on Stripe |
GET /api/tenant/bill | The current cycle's bill: seats, seat changes, usage and credit balance |
Built-in roles: Owner, Admin, Billing manager, Developer, Content editor, Support agent, Reports reader and Viewer. A request the role doesn't allow returns auth.forbidden (403).
For the signed-in person: GET /api/account/org-invites lists invitations waiting for them, POST /api/org-invites/accept (token from the email, or inviteId) joins, POST /api/org-invites/:id/decline declines, POST /api/org-invites/preview shows what an emailed link is for, and POST /api/account/organizations/:id/leave leaves an organization.
Domains and origins#
| Request | Purpose |
|---|---|
POST /api/tenant/domains | Add a domain (domain, method: dns_txt, dns_cname, html) |
POST /api/tenant/domains/check | Check verification now |
PUT /api/tenant/domains/subdomains | Opt subdomains in |
DELETE /api/tenant/domains/:domain | Remove a domain (purges what was learned from it) |
PUT /api/tenant/origins | Extra allowed origins for your publishable key (up to 20): websites (https://shop.example.com) and mobile apps (app:ios:<bundle id>, app:android:<package>) |
GET /api/tenant/context-provider | The connected context provider, if any |
PUT /api/tenant/context-provider | Connect a context provider ({ "url": "https://…" }); returns its signing secret once. Verified owners only |
DELETE /api/tenant/context-provider | Disconnect it. Verified owners only |
Knowledge and learning#
| Request | Purpose |
|---|---|
POST /api/tenant/knowledge/draft | Draft from your website (url) |
GET / PUT /api/tenant/knowledge | Read or save the knowledge model |
POST /api/tenant/knowledge/deep-crawl | Start a learning session that reads your whole site (learning) |
GET/POST /api/tenant/learning/sessions | Plan allowance, session log; start a session |
GET /api/tenant/learning/sessions/:id, POST …/confirm, POST …/discard | Review a session |
GET /api/tenant/sitemap-health | Sitemap health report |
GET /api/tenant/graph | Knowledge graph (offerings, prices, promos) |
GET /api/tenant/learning · POST …/answer · POST …/items/:id | Content gaps and review queue |
Details: Knowledge & discovery.
Policy#
| Request | Purpose |
|---|---|
GET / PUT /api/tenant/policy | Access policy |
POST /api/tenant/policy/sign | Sign it |
GET / PUT /api/tenant/usage-policy · GET …/simulate | Usage policy (details) |
POST /api/tenant/enduser-secret | Create or rotate the end-user token secret |
GET / POST /api/tenant/abuse | Flagged visitors and enforcement |
Channels and handoff#
| Request | Purpose |
|---|---|
GET /api/tenant/voice · PUT …/voice/policy · POST …/voice/provision | Kroos Voice |
GET /api/tenant/channels · PUT /api/tenant/channels/:channel | SMS (sms) and WhatsApp (whatsapp) |
PUT / DELETE /api/tenant/helpdesk | Helpdesk connection |
GET /api/tenant/handoffs · POST …/:id/:state | Handoffs |
Insights#
| Request | Purpose |
|---|---|
GET /api/tenant/intel | Demand insights |
PUT /api/tenant/intel/competitors | Competitors to track |
GET /api/tenant/intel/forecast | Forecasts |
GET /api/tenant/intel/visibility · POST …/sample | AI visibility (details) |
Employees and internal systems#
| Request | Purpose |
|---|---|
GET / POST /api/tenant/employees · POST …/:id/login-link | Employees and one-time sign-in links |
GET / POST /api/tenant/internal/docs · DELETE /api/tenant/internal/docs/:id · POST /api/tenant/internal/docs/:id/trust | Internal documents and review status |
GET /api/tenant/internal/connectors · POST …/:kind | Document connectors |
POST /api/tenant/internal/simulate | "What can this person see?" |
GET /api/tenant/access/methods · POST …/attest · POST …/attestations/:id/revoke | Read-only access methods (details) |
GET / POST /api/tenant/roua | ROUA audit reports |
POST /api/tenant/explorer/schema · …/query · …/check-sql · GET …/runs | Explorer |
GET / POST /api/tenant/node/callhome · POST …/:id | Kroos Node call-home approvals |
Details: Internal assistant.
Billing, keys and webhooks#
| Request | Purpose |
|---|---|
GET /api/tenant/billing · GET /api/tenant/billing/usage · PUT /api/tenant/billing/settings · POST /api/tenant/billing/credits | Tier, credits, auto-reload, limits, usage |
GET /api/tenant/credits | Credit balance |
POST /api/tenant/workspaces · PUT …/:id | Workspaces |
POST /api/tenant/keys/admin · …/keys/:id/rotate · …/keys/:id/revoke | Keys |
POST /api/tenant/webhooks · DELETE …/:id | Webhook endpoints (details) |
Network#
| Request | Purpose |
|---|---|
GET /api/tenant/mesh · POST …/agreements · …/:id/sign · …/:id/terminate · POST …/hubs · GET …/hubs/:id/dashboard | Federation Mesh |
GET /api/tenant/gov · POST /api/tenant/gov/attestation · POST /api/tenant/gov/attestation/:id/confirm | Government tier |
GET /api/tenant/marketplace · POST /api/tenant/marketplace/apply · POST /api/tenant/marketplace/engagements/:id | Become a vetted provider |