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

# Create Knowledge Base - POST /v1/workspaces/:workspace_id/kbs

> Create a knowledge base via POST /v1/workspaces/:workspace_id/kbs; name required, type optional. Minimum role contributor.

Create a knowledge base (KB) under a workspace. KBs collect documents; once parsed, documents automatically yield candidate memory nodes.

## Endpoint

```http theme={null}
POST /v1/workspaces/:workspace_id/kbs
```

## Authentication

`Authorization: Bearer <jwt>` or `X-API-Key <sk_...>`. Minimum role: **contributor**.

## Path parameters

**workspace\_id** `string` *required*

Workspace id.

## Request body

**name** `string` *required*

KB name.

**type** `string`

KB type (`faq` / `document` / `wiki`); decided by the server when omitted.

## Response

**id** `string`

KB id (`kb_...`).

**workspace\_id** `string`

Owning workspace id.

**name** `string`

Name.

**type** `string`

Type.

**created\_at** `string`

Creation time (RFC3339).

## Example

```bash cURL theme={null}
curl -X POST https://memo.ariacompute.com/v1/workspaces/ws_01a2b3c4d5e6/kbs \
  -H "Authorization: Bearer <jwt>" \
  -H "Content-Type: application/json" \
  -d '{"name":"Product Docs","type":"document"}'
```

```json 200 theme={null}
{
  "id": "kb_01a2b3c4d5e6",
  "workspace_id": "ws_01a2b3c4d5e6",
  "name": "Product Docs",
  "type": "document",
  "created_at": "2026-10-12T08:00:00Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.