> ## 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.

# Generate Wiki Page - POST /v1/workspaces/:workspace_id/wiki/generate

> Generate a wiki page from a KB topic via POST /v1/workspaces/:workspace_id/wiki/generate. Minimum role contributor.

Generate a wiki page from a knowledge base and topic, letting the model crystallize memory-conversion results into a wiki page.

## Endpoint

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

## Authentication

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

## Path parameters

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

Workspace id.

## Request body

**kb\_id** `string`

Source KB id for generation.

**topic** `string`

Generation topic.

## Response

**page\_id** `string`

Generated wiki page id (`wiki_...`).

## Example

```bash cURL theme={null}
curl -X POST https://memo.ariacompute.com/v1/workspaces/ws_01a2b3c4d5e6/wiki/generate \
  -H "Authorization: Bearer <jwt>" \
  -H "Content-Type: application/json" \
  -d '{"kb_id":"kb_01a2b3c4d5e6","topic":"AriaMem Getting Started"}'
```

```json 200 theme={null}
{
  "page_id": "wiki_01a2b3c4d5e6"
}
```


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