---
title: "create kb space"
method: POST
path: "/admin/kb/{kb_id}/space"
tags: ["space"]
---

# create kb space

`POST /admin/kb/{kb_id}/space`

## Path parameters

- `kb_id` integer, required

## Request body

- SvcCreateSpaceReq
  - `opt` ModelPlatformOpt
    - `access_token` string
    - `app_id` string
    - `phone` string
    - `refresh_token` string
    - `secret` string
    - `url` string
    - `user_third_id` string
    - `username` string
  - `platform` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
  - `title` string, required

## Response `200`

OK

- object
  - `data` integer
  - `err` string
  - `msg` string
  - `success` boolean
  - `trace_id` string

---

[API](https://skmtc.dev/chaitin/apis/koalaqa-api.md) · [All operations](https://skmtc.dev/chaitin/apis/koalaqa-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaitin/koalaqa-api/revisions/29abcc05d9fd/schema)
