---
title: "Create knowledge base topic"
method: POST
path: "/v1/agents/{agentId}/branches/{branchId}/knowledge-base/topics"
tags: ["Knowledge Base"]
---

# Create knowledge base topic

`POST /v1/agents/{agentId}/branches/{branchId}/knowledge-base/topics`

## Request body

- CreateKnowledgeBaseTopicBody
  - `name` string, required
  - `content` string, required
  - `actions` string
  - `exampleQueries` object
    - `queries` string[], required
  - `isActive` boolean

## Response `201`

Created topic

- CreateKnowledgeBaseTopicPublicResponse
  - `id` string, required
  - `name` string, required
  - `content` string, required
  - `actions` string, required
  - `exampleQueries` object, required
    - `queries` string[], required
  - `isActive` boolean, required

---

[API](https://skmtc.net/poly/apis/polyai-agents-api.md) · [All operations](https://skmtc.net/poly/apis/polyai-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poly/polyai-agents-api/revisions/76f3c606e395/schema)
