> ## Documentation Index
> Fetch the complete documentation index at: https://studio.chat-atp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a knowledge base

> Create a knowledge base, optionally bound to an agent

<ParamField body="name" type="string" required>
  Display name.
</ParamField>

<ParamField body="description" type="string">
  Optional description. Defaults to `""`.
</ParamField>

<ParamField body="agent_id" type="integer">
  Optional agent to attach on create.
</ParamField>

## SDK

<CodeGroup>
  ```typescript TypeScript theme={null}
  const kb = await client.knowledgeBases.create({ name: "Docs", description: "Help center" });
  ```

  ```python Python theme={null}
  kb = await client.knowledge_bases.create("Docs", description="Help center")
  ```
</CodeGroup>
