> For the complete documentation index, see [llms.txt](https://k-ai.gitbook.io/knowledge-ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://k-ai.gitbook.io/knowledge-ai/reference/platform-api.md).

# OpenAPI — Platform API

The OpenAPI 3.1 specification for the **K-AI Platform API** — the management surface for organizations, instances, members, and Organization API keys. Base URL: `https://back.kai-studio.ai`.

Authenticate with a Bearer token obtained by exchanging an [Organization API key](/knowledge-ai/authentication/organization-api-keys.md), or with the `kai_auth` cookie from a browser session. Every operation is authorized by organization RBAC — the same roles that govern the K-AI Studio portal. All responses use a `{ "response": ... }` envelope.

{% hint style="info" %}
This API manages your tenant. To **query** documents and the semantic graph, use the [Retrieval API](/knowledge-ai/reference/retrieval-api.md); to drive an audit, use the [Audit API](/knowledge-ai/reference/audit-api.md). To **ingest** into a single instance, use the [Instance API](/knowledge-ai/reference/instance-api.md).
{% endhint %}
