Mint a new API key for a tenant.
/v1/abilities/key.issueMint a new API key for a tenant. Returns the raw key ONCE (only a sha256 is stored). Admin keys may issue for any tenant; a tenant key may issue only for its own tenant and never wider than itself (abilities/collections must be a subset). Auth-required.
Request body
Section titled “Request body”inputKeyIssueInputrequiredShow 11 properties
tenantstringoptionalTenant id the key belongs to (^[a-z0-9][a-z0-9_-]{1,63}$). Default: the caller’s tenant.
namestringoptionalHuman label, e.g. “console”, “sebenza prod”. Default: the tenant.
abilitiesone of 2 variantsrequired“*” or an explicit list of ability ids. REQUIRED — a key with no stated scope is refused.
Show 2 variants
- stringAllowed values:
* - string[]
collectionsstring[]optionalMemory collections this key may read/write (Qdrant). Default none.
allowSubTenantbooleanoptionalMay scope calls to <tenant>__<sub> (one key, many orgs). Default false.
personastringoptionalOptional per-key voice for /agent (max 4000 chars).
componentsone of 2 variantsoptionalgen-UI component scope: “*”, a tier (basic|pro|enterprise) or an explicit list.
Show 2 variants
- string
- string[]
guideProductsstring[]optionalHelp-centre products this key may publish to.
simGeneratebooleanoptionalMay generate playable case studies.
adminbooleanoptionalMint an ADMIN key (manage keys for any tenant). Admin callers only.
expiresInDaysnumberoptionalOptional expiry, 1..3650 days.
contextCallContextoptionalOptional call context. The tenant always comes from the credential:
tenantIdis honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.Show 3 properties
tenantIdstringoptionalSub-tenant to act for (sub-tenant credentials only).
runIdstringoptionalThe trust run (from trust.preflight) this call executes under.
verticalIdstringoptionalVertical to attribute created records to.
Returns
Section titled “Returns”Schema shown for 200 · application/json
resultThe ability’s return value. Its shape depends on the ability.