Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: klanex Api Key API
version: 0.7.0
description: 'Tool orchestration engine for AI agents. Submit tool-use intents for
reliable asynchronous execution: schema gating, retries with backoff,
circuit breakers, encrypted credentials, human-in-the-loop approvals,
replay, and HMAC-signed webhooks.
Prose companion: docs/api.md. Client SDKs: klanex-js (@klanex/sdk),
klanex-python (klanex).'
servers:
- url: https://api.klanexai.com
description: production
- url: https://api.sandbox.klanexai.com
description: sandbox — same code, Stripe test mode, separate accounts/data
security:
- ApiKeyAuth: []
tags:
- name: API Key
paths:
/v1/api-key/rotate:
post:
operationId: rotateAPIKey
summary: Rotate this tenant's API key
description: Mints a new API key and immediately invalidates the current one. Authenticate with the current key; the response is the only place the new raw key is returned (only its SHA-256 is stored).
responses:
'200':
description: A new API key. Store it now — it is shown only once.
content:
application/json:
schema:
type: object
properties:
tenant_id:
type: string
api_key:
type: string
'401':
$ref: '#/components/responses/Unauthenticated'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- API Key
components:
responses:
Unauthenticated:
description: Missing or invalid X-API-Key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
RateLimited:
description: Per-tenant rate limit exceeded; retry after Retry-After seconds.
headers:
Retry-After:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
schemas:
ErrorResponse:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
problems:
type: array
items:
type: string
llm_hint:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: 'Tenant API key issued at onboarding: "klx_live_..." (production) or "klx_test_..." (sandbox). Using a key against the other environment returns 401 WRONG_ENVIRONMENT. Legacy bare "klx_..." keys are accepted.
'