---
title: "Create topic"
method: POST
path: "/topics"
tags: ["Topics"]
---

# Create topic

`POST /topics`

## Request body

- CreateTopicRequest
  - `sessionId` string, required
  - `title` string, required

## Response `200`

Created

- ApiResponseTopic
  - `success` boolean, required
  - `message` string, nullable
  - `timestamp` string, date-time, required
  - `data` Topic
    - `id` string
    - `sessionId` string
    - `title` string
    - `messageCount` integer, nullable
    - `createdAt` string, date-time, nullable
    - `updatedAt` string, date-time, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/lobehub/apis/lobechat-openapi.md) · [All operations](https://skmtc.net/lobehub/apis/lobechat-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lobehub/lobechat-openapi/versions/7be2ebcf191c/schema)
