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

# Get knowledge base document



## OpenAPI

````yaml /portal/openapi.yaml get /knowledge/{knowledgeId}
openapi: 3.0.3
info:
  title: Aptly Portal API
  description: >
    HTTP API for the Aptly rental application screening portal. Used by
    prospective tenants, showing agents, and property management staff.
  version: 1.0.0
servers:
  - url: https://app.getaptly.com/api/portal
    description: Production
  - url: https://www.workturbo.net/api/portal
    description: Staging
  - url: http://localhost:3000/api/portal
    description: Development
security: []
paths:
  /knowledge/{knowledgeId}:
    get:
      tags:
        - Knowledge Base
      summary: Get knowledge base document
      operationId: get-knowledge-knowledgeid
      parameters:
        - name: knowledgeId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Knowledge document
          content:
            application/json:
              schema:
                type: object
                properties:
                  _id:
                    type: string
                  title:
                    type: string
                  slug:
                    type: string
                  content:
                    type: string
                  contentType:
                    type: string
                    enum:
                      - html
                      - markdown
                  category:
                    type: string
                  tags:
                    type: array
                    items:
                      type: string
                  publishedAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    Error:
      type: object
      properties:
        reason:
          type: string
          example: human-readable error string

````