kaitencloud-mcp
v0.5.0Kaiten MCP server: intent-level tools over the Kaiten API for AI agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
kaiten_overview Kaiten Overview
Start here. A snapshot of the organization: how many customers, instances, plans, entitlements, flags, zones and releases it has; each plan's current version; what each zone runs; and the instances that need attention (unhealthy, license ending or ended, archived license, a limit in warning or overage).
| Parameter | Type | Description |
|---|---|---|
attention_within_days | integer | Flag licenses ending within this many days |
kaiten_search Kaiten Search
Find anything in the organization by name or slug: customers, instances, plans, license versions, entitlements, groups, feature flags, zones, releases, components, service accounts. Returns the kind and slug of each match, which every other tool accepts.
| Parameter | Type | Description |
|---|---|---|
query * | string | Text to find in slugs, names, descriptions, domains and external ids (case-insensitive) |
kinds | Restrict to these kinds; all when omitted | |
limit | integer |
kaiten_get_customer Kaiten Get Customer
A customer's 360 view: who they are, every instance they run, the plan and license version each one is on, usage against every limit, the features they are entitled to, and what needs attention.
| Parameter | Type | Description |
|---|---|---|
customer * | string | Customer slug |
kaiten_get_instance Kaiten Get Instance
Everything about one instance: its customer, license version and plan, deployment zone and the release running there, usage against each limit (with its window's start and reset date), entitled features and config, what needs attention, and its most recent audit events.
| Parameter | Type | Description |
|---|---|---|
instance * | string | Instance slug |
recent_events | integer | How many recent audit events to include |
kaiten_list_instances Kaiten List Instances
Find instances by customer, plan, license version, zone, status, lifecycle stage, license end date or attention. Returns one compact row each; use kaiten_get_instance for the full picture.
| Parameter | Type | Description |
|---|---|---|
customer | Only this customer's instances | |
deployment_zone | Only instances in this deployment zone | |
license | Only instances on this exact license version slug | |
license_ends_within_days | Only instances whose license ends within this many days (ended ones included) | |
lifecycle_stage | Only instances at this commercial lifecycle stage, whatever its case (beta finds Beta) | |
limit | integer | |
needs_attention | boolean | Only instances that need a look: unhealthy, license ending in 30 days, archived license, or a limit in warning/overage |
plan | Only instances on this plan (license family slug), any version | |
status | Only instances with this operational status |
kaiten_save_customer Kaiten Save Customer
Create a customer, or update the fields you pass on an existing one (others are kept). Reports created / updated / unchanged, and exactly which fields changed.
| Parameter | Type | Description |
|---|---|---|
customer * | string | Customer slug. Created when it does not exist yet |
billing_email | Where invoices sent to the customer go: Stripe needs one to send them (SEND_INVOICE collection). '' removes it | |
domain | The customer's domain, e.g. sakura-tokyo.example | |
external_customer_id | The id your CRM or billing system uses for this customer | |
name | Display name (required to create) |
kaiten_provision_instance Kaiten Provision Instance
Give a customer a new instance on a plan: resolves the plan to its current license version, optionally places it in a deployment zone, and sets its license term. Creates the customer too when customer_name is given and the customer is new. Subject to the organization's own limits.
| Parameter | Type | Description |
|---|---|---|
customer * | string | Slug of the customer the instance belongs to |
name * | string | Instance display name, e.g. 'Sakura Tokyo Production' |
customer_name | Creates the customer with this name if it does not exist yet | |
deployment_zone | Deployment zone slug the instance runs in | |
description | string | Free-text description |
license | Exact license version slug, instead of plan | |
license_end | License end, ISO date; defaults to start + term_days | |
license_start | License start, ISO date; defaults to now | |
metadata | Instance metadata, validated against the organization's INSTANCE metadata fields | |
plan | Plan (license family slug); the instance gets the plan's current version | |
slug | Instance slug; generated from the name when omitted | |
term_days | integer | License term when license_end is omitted |
kaiten_update_instance Kaiten Update Instance
Change an instance: rename it, change its plan or license version, deploy or migrate it to a zone, renew or move its license term, edit metadata keys, or set its status and lifecycle stage. Only what you pass changes. Metadata keys changed alone are merged by Kaiten into what it holds (Kaiten 26.11.4 or later). They are merged here and written back whole, which loses a change another caller made in between, when the same call also changes the name, description, plan, license, zone or term (one write, so a refusal changes nothing), or on an older Kaiten; the answer then notes it. The answer rep…
| Parameter | Type | Description |
|---|---|---|
instance * | string | Instance slug |
deployment_zone | Deploy to (or migrate to) this zone slug. Kaiten has no way to take an instance out of its zone | |
description | ||
extend_license_days | Push the license end out by this many days (a renewal) | |
license | Move to this exact license version slug, instead of plan | |
license_end | New license end, ISO date | |
license_start | New license start, ISO date | |
lifecycle_stage | Commercial lifecycle stage, e.g. onboarding, active, churning | |
metadata | Keys to set, each value replacing the key's whole value; a key set to null is removed. Other keys are kept. Passed alone, Kaiten merges them (26.11.4 or later); with a field the instance's PUT carries… | |
name | ||
plan | Move to this plan's current version (license family slug): an upgrade, downgrade or catch-up to the latest version | |
status | Operational status |
kaiten_get_usage Kaiten Get Usage
Usage of metered (NUMBER and AI credit) entitlements across instances, highest percentage first: who is close to a limit, who is in overage, how much of a quota a customer has left. Each row is measured against the instance's effective limit, as Kaiten enforces it: its License's grant with its add-ons, voucher boosts and entitlement exception applied (limit_includes names them). States: ok, warning (past the entitlement's warning threshold), at_limit, overage (past the included value but within the overage allowance), over, unlimited. The row of an entitlement that resets carries its window: p…
| Parameter | Type | Description |
|---|---|---|
customer | Only this customer's instances | |
entitlement | Only this entitlement (slug) | |
limit | integer | |
min_percent | Only rows at or above this percentage of their limit | |
plan | Only instances on this plan (license family slug) | |
states | Only rows in these states |
kaiten_get_usage_reports Kaiten Get Usage Reports
The usage reports Kaiten accepted for one instance's entitlement, newest first: when, append or set, the amount, the counter before and after it, the limit in force, and the transaction_id it was sent under. With idempotency_key, whether the report sent under it was recorded. A refused report is not in this history: kaiten_get_audit_trail lists those.
| Parameter | Type | Description |
|---|---|---|
entitlement * | string | Metered entitlement slug |
instance * | string | Instance slug |
idempotency_key | Only the report sent with this idempotency_key (Kaiten's transactionId) | |
limit | integer | |
since | ISO date or timestamp; the last 30 days when omitted |
kaiten_report_usage Kaiten Report Usage
Report consumption of a metered entitlement for an instance, and say where it now stands against its limit. A report the grant refuses (past a hard limit, or past the overage allowance) comes back with status 'rejected' and is not recorded. Without an idempotency_key, each call is a separate report: never repeat one that answered. With one, a repeat is safe: Kaiten answers it 'unchanged' and replayed, having counted it once, and refuses ('rejected') a key already spent on a report of another behavior or amount.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Quantity to report |
behavior * | string | append: an event of this size, aggregated by the entitlement's method (SUM, COUNT, LATEST...). set: replace the current value |
entitlement * | string | Metered entitlement slug |
instance * | string | Instance slug |
idempotency_key | The id of the business event the report counts: 1 to 128 letters, digits, '.', '_', ':' or '-', e.g. 'llm-call-9f2c:tokens'. Kaiten counts it once per instance and entitlement within its idempotency w… | |
metadata | Context recorded with the report |
kaiten_get_catalog Kaiten Get Catalog
What the organization sells. Without a plan: the entitlement catalog (with groups) and every plan's current version with its grants, as a plan comparison; a public plan says whether its public catalogue lists it, which takes a default version: without one, the current version is the highest PUBLISHED one, and nothing is listed. With a plan: its settings (public listing and the version listed, fallback plan, how its trials end) and its versions, oldest first, each with its lifecycle state, how it is sold, the instances on it, and its grants.
| Parameter | Type | Description |
|---|---|---|
plan | A plan (license family slug): show every version with its state, instances and grants |
kaiten_save_entitlement Kaiten Save Entitlement
Define an entitlement in the catalog, or update the fields you pass on an existing one. groups sets its group membership exactly. Reports created / updated / unchanged with the changes.
| Parameter | Type | Description |
|---|---|---|
entitlement * | string | Entitlement slug. Created when it does not exist yet |
aggregation | How reports combine, for metered types (defaults to SUM) | |
description | ||
display_order | ||
groups | The complete list of group slugs it belongs to; missing groups are created | |
icon | ||
name | Display name (required to create) | |
reset_anchor | Periods align on the calendar or on each license's start | |
reset_period | Usage resets every period; omit for a lifetime quota | |
type | BOOLEAN feature, NUMBER quota, NUMBER_AI_CREDIT, or CONFIG value. Set at creation | |
unit_plural | ||
unit_singular | ||
user_facing | Shown to end customers | |
warning_threshold_percent | Usage at this percentage of the limit raises a warning |
kaiten_save_license Kaiten Save License
Shape what a plan includes, and how each version is sold. Three intents: - new plan: neither license nor new_version_of; creates a license family with version 1. - new version of a plan: new_version_of=<plan>; copies the current version's grants (unless copy_grants is false) and how it is sold, and applies yours. Nobody moves to it until an instance is updated, so it is the safe way to change pricing. - edit a version in place: license=<version slug>; changes every instance on that version immediately, and the answer lists them. Grants not mentioned are kept; null removes one. pricing, r…
| Parameter | Type | Description |
|---|---|---|
copy_grants | boolean | For new_version_of: start from the plan's current version's grants, then apply grants on top |
description | ||
draft | boolean | Create the version as a DRAFT, not on sale until published |
grants | Grants by entitlement slug. A value is a number (NUMBER: -1 or 'unlimited' for no cap), true/false (BOOLEAN), or an object (CONFIG); or {'value': v, 'overage_percent': p} where p=0 is a hard limit and… | |
license | Edit this existing license version in place (its slug) | |
name | Display name. Required for a new plan; a new version keeps the plan's name | |
new_version_of | Add the next version to this plan (license family slug) | |
pricing | How the version is sold: FREE or PAID can be bought self-serve; CUSTOM sends a buyer to self_serve_cta_url or a conversation. A new plan is CUSTOM unless set; a new version keeps the plan's | |
requires_payment_method | Self-serve signup captures a payment method before activation. A new version keeps the plan's | |
self_serve_cta_url | Where a buyer is sent when the version cannot be bought self-serve, e.g. a contact-sales page: an http(s) URL, '' for none. A new version keeps the plan's | |
slug | Slug of a new plan (it becomes the plan's slug too) | |
trial_days | The trial a subscription to the version starts with by default, 0 for none. A new version keeps the plan's | |
type | Required for a new plan | |
version_name | Label for this version, e.g. '2026 pricing' |
kaiten_set_license_state Kaiten Set License State
Move a license version through its lifecycle, or pin it as its plan's default version. The default of a public plan is the version its public catalogue offers, and a public plan without one is not listed. Asking for the state it is already in reports 'unchanged'.
| Parameter | Type | Description |
|---|---|---|
action * | string | publish: put a DRAFT on sale. archive: withdraw a PUBLISHED version from sale (instances already on it keep it). unarchive: put it back on sale. make_default / unset_default: pin which version the pla… |
license * | string | License version slug |
kaiten_get_billing Kaiten Get Billing
Start here for billing. Without an instance: whether billing is on for the organization, and why not; who can collect its invoices (no provider, Stripe); its default payment terms; the add-ons it sells, by family, with each one's current version; and its vouchers, each shown by the last four characters of its code, which is a secret. With an instance: its subscription (status, base price, period and next boundary, provider and terms, a scheduled change or cancellation), the invoice its next boundary will issue from its usage so far, the add-ons it holds, the vouchers it redeemed, and its lates…
| Parameter | Type | Description |
|---|---|---|
instance | An instance slug, for its subscription, upcoming invoice, add-ons, vouchers and latest invoices |
kaiten_get_prices Kaiten Get Prices
What a License version costs: its prices -- flat fees per billing period, usage-based and overage prices on a metered entitlement -- with the ids the other billing tools take; and, with preview or any preview argument, the renewal invoice a subscription to it would be billed at a boundary now, from a usage sample or an instance's own usage, with add-ons and a voucher. Works on a draft, before its prices freeze. Amounts are in the currency's minor units: 4900 EUR is 49.00 EUR. Scopes: read:licenses.
| Parameter | Type | Description |
|---|---|---|
add_ons | Add-on version slugs and quantities to price in | |
base_price | The flat fee billed as the base (a price id); the version's first default | |
include_deprecated | boolean | |
instance | Rate this instance's own usage instead of a sample | |
license | An exact license version slug, a draft included | |
plan | A plan (license family slug): its current version | |
preview | boolean | Also compose the invoice a subscription to the version would be billed now, writing nothing. Implied by any of the arguments below |
sample_usage | Usage of each metered entitlement over the period, e.g. {'monthly-orders': 106}; usage past what the grant accepts is capped | |
voucher_code | A voucher whose discount to apply; nothing is redeemed |
kaiten_get_invoices Kaiten Get Invoices
The organization's invoices, newest first, in the console's views: all, overdue, held, the handoff queue and what the accounting system acknowledged. With an invoice id: that invoice with its lines, each with the arithmetic Kaiten composed it from. Amounts are in the currency's minor units: 4900 EUR is 49.00 EUR. Scopes: read:billing.
| Parameter | Type | Description |
|---|---|---|
customer | Only this customer's | |
instance | Only this instance's | |
invoice | An invoice id, for that invoice with its lines | |
limit | integer | |
status | Only these statuses. MANUAL: issued, for you to collect | |
view | string | overdue: issued, unpaid past its due date. held: a draft held for its usage journal. handoff: issued with no payment provider, waiting for the organization's accounting system. acknowledged: taken by… |
kaiten_save_prices Kaiten Save Prices
Price a License version: add prices and deprecate others; prices not mentioned are kept. A price is never edited: a deprecated one stops being offered and stops being a default, while subscriptions pinned to it keep being billed from it. Deprecations go first, so a new default can replace an old one. Once a subscription bills the version, Kaiten refuses new prices: create a new version (kaiten_save_license new_version_of=...). A price identical to an active one reports 'unchanged'. Scopes: write:licenses.
| Parameter | Type | Description |
|---|---|---|
license * | string | License version slug |
add | Prices to add | |
deprecate | Ids of prices to retire for good, from kaiten_get_prices |
kaiten_save_plan_settings Kaiten Save Plan Settings
A plan's own settings, the same for every version of it: whether the organization's public catalogue lists it, the FREE plan its instances fall back to when a subscription ends, and how its trials end. How each version is sold (pricing, payment method, trial length) is the version's own: kaiten_save_license. Only what you pass changes; asking for what is already set reports 'unchanged'. Scopes: write:licenses.
| Parameter | Type | Description |
|---|---|---|
plan * | string | A plan (license family slug) |
fallback_plan | A FREE plan, every version of it priced FREE, whose default version an instance moves to when its subscription ends; '' for none | |
public | List the plan in the organization's public catalogue, which its website reads with a publishable key: the plan's default version, once PUBLISHED, with its ACTIVE prices. A plan is private until made p… | |
trial_end_without_payment_method | What a trial charged automatically becomes at its end when the customer has no active payment method: CANCEL ends the subscription; CONVERT makes it ACTIVE, and its first charge then fails | |
trial_reminder_days | How many days before a trial's end trial_will_end fires, for the trials started after the change |
kaiten_subscribe_instance Kaiten Subscribe Instance
Start billing an instance: its subscription is pinned to a flat fee of its License version -- the default of a billing period, or an exact price -- and its invoices are collected by no provider (the handoff queue) or by Stripe. A base billed in advance issues the first period's invoice at once, in the answer. While the subscription lives, the instance's customer and License cannot change. An instance already billed on that price reports 'unchanged'. Scopes: write:billing, read:instances, read:licenses.
| Parameter | Type | Description |
|---|---|---|
instance * | string | Instance slug; its License version must be published |
add_ons | Add-on version slugs and quantities to attach with it | |
billing_period | Bill the default flat fee of this period of the instance's version | |
collection_method | CHARGE_AUTOMATICALLY needs Stripe and a payment method; the organization's default when omitted | |
days_until_due | Payment terms; the organization's default when omitted | |
price | Or this exact flat fee of its version: a price id from kaiten_get_prices | |
provider | string | Who collects the invoices. NOOP: no provider, the organization's own accounting system takes them from the handoff queue. STRIPE: must be connected |
start_at | ISO date the periods count from: now, or up to one period back | |
trial_days | A trial, 0 for none; the version's own when omitted | |
voucher_code | A voucher to redeem with it, from its first invoice |
kaiten_cancel_subscription Kaiten Cancel Subscription
Cancel an instance's subscription. It ends billing only: the instance keeps its add-ons, vouchers and license dates, and keeps its License -- unless its License family names a fallback, which the instance moves to when the subscription ends. A trial ends at once, with no invoice. A cancellation already scheduled or done reports 'unchanged'. Scopes: write:billing, read:instances.
| Parameter | Type | Description |
|---|---|---|
instance * | string | Instance slug |
reason | ||
when | string | period_end: the period paid for runs out, then a final invoice bills what is left in arrears; it can be reactivated until then, from the console. now: the final invoice is issued at once, fees billed… |
kaiten_set_instance_addon Kaiten Set Instance Addon
Attach an add-on to an instance, change how many units it holds, or detach it (quantity 0). Its entitlements follow at once, raising or lowering the instance's effective limits. A subscription bills the quantity held at each boundary, without proration; a decrease or a detach refunds nothing. An instance holds one version per family. Scopes: write:instances.
| Parameter | Type | Description |
|---|---|---|
addon * | string | The add-on version slug to attach (kaiten_get_billing lists each family's current version); for one the instance holds, its version or family slug |
instance * | string | Instance slug |
quantity * | integer | Units to hold; 0 detaches it |
kaiten_save_voucher Kaiten Save Voucher
Create a voucher, a code an instance redeems: a discount on its invoices, a boost of its entitlements, a feature flag variant served to it, or several at once -- its kind follows from what you pass. It is created as a draft, then published unless publish is false. For a code that exists: publishes it if it is a draft and publish is true, else reports 'unchanged'; it never edits one. The answer that creates the voucher repeats its code; every other answer shows its last four characters. Scopes: write:vouchers, and read:licenses for licenses.
| Parameter | Type | Description |
|---|---|---|
code * | string | The code to redeem, matched without case or separators. Under 12 characters (separators left out) it needs max_redemptions or expires_at |
boosts | Entitlement slug -> what the voucher changes in it, for its duration | |
customer | Only this customer's instances may redeem it | |
description | ||
discount | Off the invoices of the redeeming instance | |
duration | string | A discount counts invoices, a boost or flag grant billing periods: one, periods, or without end |
expires_at | ISO date or timestamp | |
flag_grants | Feature flag slug -> the variant it serves the redeeming instance | |
licenses | Only instances on these License version slugs may redeem it | |
max_redemptions | ||
name | Display name (required to create) | |
periods | With REPEATING | |
publish | boolean | Make it redeemable now; false keeps it a DRAFT |
kaiten_redeem_voucher Kaiten Redeem Voucher
Redeem a voucher for an instance: a discount applies to its subscription's next invoices, a boost or a flag grant from the next read or evaluation, each for the voucher's duration. A code the instance cannot redeem -- unknown, expired, exhausted, not eligible -- comes back 'rejected' with the reason; one it already redeemed, 'unchanged'. Scopes: write:voucher_redemptions.
| Parameter | Type | Description |
|---|---|---|
code * | string | The voucher's code |
instance * | string | Instance slug |
kaiten_mark_invoice_paid Kaiten Mark Invoice Paid
Record that an invoice the organization collects itself -- no payment provider, status MANUAL -- was paid. One a payment provider collects is settled there. A paid invoice reports 'unchanged'. Scopes: write:billing.
| Parameter | Type | Description |
|---|---|---|
invoice * | string | Invoice id, from kaiten_get_invoices |
external_reference | Its number in your accounting system; also acknowledges it from the handoff queue | |
note | E.g. the transfer's reference; kept in the paid event only | |
paid_at | ISO date or timestamp, now or earlier; now when omitted |
kaiten_get_flags Kaiten Get Flags
Feature flags. Without a flag: one line per flag (type, enabled, default, rule count). With a flag: its variants, default, ordered targeting rules (linted) and metadata, in the shape kaiten_save_flag accepts, and for a beta whether the instance lists its rules read are ready. To see what a customer actually gets, and which rules fail at evaluation, use kaiten_evaluate_flags.
| Parameter | Type | Description |
|---|---|---|
flag | A flag slug, for its full definition |
kaiten_evaluate_flags Kaiten Evaluate Flags
What a customer or instance actually gets: evaluates flags exactly as your application would through OpenFeature, with Kaiten's server-side facts, and returns each flag's value, variant and reason (TARGETING_MATCH, SPLIT, DEFAULT, DISABLED, ERROR), plus every rule that failed to run and why.
| Parameter | Type | Description |
|---|---|---|
context | Extra attributes your app would send, e.g. {'user': {'role': 'admin'}} | |
customer | Evaluate as this customer (the targeting key) | |
flags | Only these flag slugs | |
instance | Evaluate as this instance; implies its customer |
kaiten_test_rule Kaiten Test Rule
Author a targeting rule safely. With a rule: lints it, runs it against a customer or instance exactly as an evaluation would, and returns whether it matched and the facts it read. Without one: the facts Kaiten provides under __kaiten, with their types and known keys. Writes nothing.
| Parameter | Type | Description |
|---|---|---|
context | Extra attributes your app would send | |
customer | Test against this customer | |
instance | Test against this instance (and its customer) | |
rule | A CEL targeting rule; omit to list the facts a rule can read |
kaiten_save_flag Kaiten Save Flag
Create a feature flag or change one: toggle it, change its variants or default, or replace its targeting rules. Every rule is linted before anything is written; a broken rule is refused with the reason, rather than saved to silently never match. Only what you pass changes. A beta is a flag whose metadata.stage is private_beta, public_beta or open_beta, default off, with rules reading three lists of flag slugs on the instance: betaAccess (the vendor invites), betaOptIn and betaOptOut (the customer's own choice), e.g. Invited: has(__kaiten.instance) && has(__kaiten.instance.metadata.betaAccess)…
| Parameter | Type | Description |
|---|---|---|
flag * | string | Flag slug (the key your app evaluates). Created when it does not exist yet |
default | Served when no rule matches: a variant name, or {rollout: {variant: weight}} | |
description | ||
enabled | The kill switch: a disabled flag serves its default to everyone and runs no rule | |
metadata | Keys to set; null removes a key. stage (private_beta, public_beta, open_beta) makes the flag a beta; remove it at general availability | |
name | Display name (required to create) | |
rules | The complete, ordered list of targeting rules (first match wins); omit to keep the current rules, [] to remove them all. Each rule is {name, rule: CEL, variant} to serve one variant, {name, rule, roll… | |
type | Value type, set at creation (defaults to boolean) | |
variants | The complete set of variants, name -> value. A boolean flag defaults to {on: true, off: false} |
kaiten_get_deployments Kaiten Get Deployments
What runs where. Without a zone: every deployment zone with the release it runs and how many instances it holds, and every release (newest first) with its components and the zones running it. With a zone: its release and components, and its instances.
| Parameter | Type | Description |
|---|---|---|
deployment_zone | A zone slug, for its release and instances |
kaiten_create_release Kaiten Create Release
Cut a release: register any component version that does not exist yet and create the release that ships them. A release is immutable; asking for one that already exists with the same components reports 'unchanged', and with different components is refused. Deploy it with kaiten_deploy_release.
| Parameter | Type | Description |
|---|---|---|
components * | array | Components it ships, each 'name@version' or {name, version}. Missing ones are created, chained to the previous version of the same name |
version * | string | Release version, e.g. '2026.9.0' |
description | string | |
slug | Release slug; generated from the version when omitted |
kaiten_deploy_release Kaiten Deploy Release
Record that a zone now runs a release; Kaiten appends it to the zone's deployment history. Reports the release it replaced and the instances in the zone; a zone already on that release is 'unchanged'.
| Parameter | Type | Description |
|---|---|---|
deployment_zone * | string | Deployment zone slug |
release * | string | Release slug or version to put on the zone; a previous one is a rollback |
kaiten_save_deployment_zone Kaiten Save Deployment Zone
Create a deployment zone (a place customers' instances run), or change the fields you pass on one. Its release is changed with kaiten_deploy_release, which keeps the history.
| Parameter | Type | Description |
|---|---|---|
deployment_zone * | string | Zone slug. Created when it does not exist yet |
description | ||
metadata | Keys to set; null removes a key. Validated against DEPLOYMENT_ZONE metadata fields | |
name | Display name (required to create) | |
type | How you classify it, e.g. production, staging, dedicated (defaults to production) |
kaiten_get_access Kaiten Get Access
Machine access to the organization: each service account and its active tokens, with their scopes and expiry. Token values are never shown after they are issued.
| Parameter | Type | Description |
|---|---|---|
service_account | Only this service account |
kaiten_get_audit_trail Kaiten Get Audit Trail
What happened, newest first: instance lifecycle (created, deployed, migrated, status changes), usage reports accepted and rejected, limits reached, warnings and overages, period rollovers.
| Parameter | Type | Description |
|---|---|---|
event | Only this event name, e.g. INSTANCE_ENTITLEMENT_CAP_EXCEEDED | |
include_payload | boolean | Include each event's payload |
instance | Only this instance's events; every instance's when omitted | |
limit | integer | |
since | ISO date or timestamp | |
until | ISO date or timestamp |
kaiten_issue_token Kaiten Issue Token
Issue a ksh_ API token for an integration (an SDK, a backend, CI), creating its service account if needed. The token value is in this answer and nowhere else: it cannot be read again.
| Parameter | Type | Description |
|---|---|---|
scopes * | array | Scopes to grant, least privilege: any of read:addons, read:billing, read:components, read:customer_sessions, read:customers, read:deployment_zones, read:entitlements, read:feature_flags, read:instance… |
service_account * | string | Service account slug; created when it does not exist yet |
token_name * | string | What the token is for, e.g. 'production backend' |
expires_at | ISO date; the token never expires when omitted | |
service_account_name | Display name, when the service account is created |
kaiten_revoke_token Kaiten Revoke Token
Revoke a service account token. Every replica stops accepting it at once; whatever used it starts failing.
| Parameter | Type | Description |
|---|---|---|
service_account * | string | Service account slug |
token * | string | Token slug, from kaiten_get_access |
kaiten_get_metadata_fields Kaiten Get Metadata Fields
The typed metadata fields the organization defined for instances or deployment zones: each key, its label and its JSON Schema. Metadata written on those resources is validated against them.
| Parameter | Type | Description |
|---|---|---|
resource_type | string | Which resource's metadata |
kaiten_get_connectors Kaiten Get Connectors
Connectors to outside systems (e.g. a CRM): for each one, whether this deployment has it, whether the organization's license allows it, and whether it is activated.
kaiten_save_metadata_field Kaiten Save Metadata Field
Define a typed metadata field, or change its label, schema, archived state or position. A schema change is first dry-run against every stored value: if any would stop validating it is refused (status 'rejected', with samples) unless force is set. position rewrites the order of the resource type's fields only when one of them is not at its place, and changes.order says which moved.
| Parameter | Type | Description |
|---|---|---|
key * | string | Metadata key, as it appears in the resource's metadata |
archived | true archives the field: frees its key and keeps stored values. An archived field is no longer listed, so it cannot be found again here | |
force | boolean | Apply a schema change even when existing values would stop validating |
json_schema | JSON Schema 2020-12 for the value, e.g. {'type': 'string', 'enum': ['eu', 'us']} | |
label | Display label (required to create) | |
position | Where it is shown among the resource type's active fields: 0 first, past the end last | |
resource_type | string | Which resource the field is on |
kaiten_configure_connector Kaiten Configure Connector
Activate or deactivate a connector for the organization, and set its settings (credentials included, stored in Vault). Activation is refused when the organization's license does not include the connector.
| Parameter | Type | Description |
|---|---|---|
connector * | string | Connector name, from kaiten_get_connectors |
activated | Activate or deactivate it for the organization | |
settings | Settings keys to set (null removes a key), validated against the connector's settings schema |
kaiten_get_webhooks Kaiten Get Webhooks
Kaiten Cloud's webhook endpoints: each one's id, its URL's scheme and host, the event types it receives, and its delivery history -- how many of its latest attempts succeeded and failed, and the most recent, newest first, with the endpoint's response. A URL's path and query are never shown, nor a signing secret: the path can be a credential, as in a Slack incoming-webhook URL. Endpoints on one host are told apart by their id, which kaiten_delete_webhook takes. With events: the event types that match, to subscribe to; a self-hosted Kaiten's event stream carries the same types. Scopes: read:webh…
| Parameter | Type | Description |
|---|---|---|
events | Find event types instead: words to look for in the catalogue of the events Kaiten publishes -- their types, names, and what fires them -- e.g. 'warning threshold'. Answered from the catalogue alone, o… | |
history | integer | Recent deliveries to show per endpoint |
kaiten_save_webhook Kaiten Save Webhook
Create a webhook endpoint on Kaiten Cloud, or set the events of the one that already delivers to this URL. A new endpoint's signing secret, which the receiver verifies every delivery with, is in the answer that creates it, and in no other answer of this server: store it then. The answer shows the URL's scheme and host only, and the endpoint's id. An event type Kaiten does not publish is refused, with the closest ones. Kaiten counts the events delivered, not the endpoints, against the organization's monthly allowance. Scopes: write:webhooks.
| Parameter | Type | Description |
|---|---|---|
event_types * | array | Every event it receives, by type (com.kaiten.instance.v1.created) or name (INSTANCE_CREATED): kaiten_get_webhooks(events=...) finds them. For an endpoint that exists, the complete list |
url * | string | The HTTPS endpoint that receives a POST for each event. A Slack incoming-webhook URL gets messages formatted for Slack |
kaiten_delete_webhook Kaiten Delete Webhook
Delete a webhook endpoint: deliveries to it stop at once. Call it first without confirm to see the endpoint and the events it receives, then with confirm=true. Its URL shows as its scheme and host only. Scopes: write:webhooks.
| Parameter | Type | Description |
|---|---|---|
webhook * | string | The endpoint's id, from kaiten_get_webhooks, or its full URL |
confirm | boolean | false (default): only show what would stop. true: delete |
kaiten_delete Kaiten Delete
Delete a customer, instance, license version, entitlement, group, flag, zone, release or component. Call it first without confirm to see what depends on it, then again with confirm=true. Kaiten refuses to delete what is still in use (a license an instance is on, a release a zone runs, an entitlement a license grants); that comes back as 'rejected' with the dependents to deal with first.
| Parameter | Type | Description |
|---|---|---|
kind * | string | What to delete |
slug * | string | Its slug |
confirm | boolean | false (default): only report what the deletion would affect. true: delete |