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

# Knowledge Base

> Retrieve help and knowledge documents for display in the portal.

Knowledge base documents are public — no authentication required.

## GET `/knowledge/{knowledgeId}`

Retrieve a knowledge base document by its ID.

<ParamField path="knowledgeId" type="string" required>
  The unique knowledge document ID.
</ParamField>

**Response**

```json theme={null}
{
  "_id": "know_abc123",
  "title": "How to complete your rental application",
  "slug": "how-to-complete-rental-application",
  "content": "<h2>Step 1: Personal Information</h2><p>...</p>",
  "contentType": "html",
  "category": "Applications",
  "tags": ["getting-started", "application"],
  "publishedAt": "2026-01-15T00:00:00.000Z",
  "updatedAt": "2026-02-20T00:00:00.000Z"
}
```

<ResponseField name="_id" type="string">
  Document ID.
</ResponseField>

<ResponseField name="title" type="string">
  Document title.
</ResponseField>

<ResponseField name="slug" type="string">
  URL-friendly identifier.
</ResponseField>

<ResponseField name="content" type="string">
  Document body — HTML or Markdown depending on `contentType`.
</ResponseField>

<ResponseField name="contentType" type="string">
  `"html"` or `"markdown"`.
</ResponseField>

<ResponseField name="category" type="string">
  Top-level category grouping.
</ResponseField>

<ResponseField name="tags" type="string[]">
  Searchable tags.
</ResponseField>

<ResponseField name="publishedAt" type="string">
  ISO datetime of first publication.
</ResponseField>

<ResponseField name="updatedAt" type="string">
  ISO datetime of last update.
</ResponseField>

**Error responses**

| Status | Reason        | Description                     |
| ------ | ------------- | ------------------------------- |
| 404    | `"Not found"` | No document with this ID exists |

***

## Notes for Developers

* Content may be HTML with embedded formatting. Render with a sanitized HTML renderer.
* Document IDs are typically configured in the organization's CMS and referenced from within the application UI.
