---
title: "Create Knowledge Base Entry"
method: POST
path: "/kb/entries"
tags: ["Knowledge Base"]
---

# Create Knowledge Base Entry

`POST /kb/entries`

Adds a new entry to your Knowledge Base.

## Request body

- object
  - `question` string, required
  - `answer` string, nullable
  - `comment` string, nullable
  - `accessLevel` 'public' | 'private' | 'internal' — Note: defaults to `internal`

## Response `201`

Successful operation

- object
  - `ok` boolean
  - `result` object — The created Knowledge Base item.
    - `id` string — The ID for the created item. The ID is guaranteed to be unique only among Knowledge Base search items.
    - `source` 'manual'
    - `subtype` object
      - `raw` string[] — Raw form of the item subtype's values. Note that product ID and product name are the same, but this is subject to change.
      - `pretty` string[] — Pretty form of the item subtype's values. May begin with the product name when source is portal.
    - `content` string
    - `product` unknown
    - `answer` string, nullable
    - `comment` string, nullable
    - `pageNumber` unknown
    - `questionNumber` unknown
    - `createdAt` string, date-time — ISO8601 format creation date.
    - `modifiedAt` string, date-time — ISO8601 format last-modified date. Defaults to creation date.

## Other responses

- `400` — Invalid request
- `403` — Invalid api key / missing scope
- `404` — Not found or no access
- `405` — Method not allowed

---

[API](https://skmtc.net/safebase/apis/safebase-api-documentation.md) · [All operations](https://skmtc.net/safebase/apis/safebase-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/safebase/safebase-api-documentation/revisions/019289073242/schema)
