---
title: "Create a bot from configuration"
method: POST
path: "/api/v1/bots"
tags: ["Bots"]
---

# Create a bot from configuration

`POST /api/v1/bots`

**Required scope:** `bot`

## Request body

- BotConfigRequest
  - `id` string
  - `name` string
  - `type` string, required — Platform adapter type, such as aiocqhttp, telegram, lark.
  - `enabled` boolean
  - `config` DynamicConfig, required

## Response `200`

Standard AstrBot success response

- SuccessEnvelope
  - `status` 'ok', required
  - `message` string
  - `data` unknown, required

---

[API](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/versions/4463c5ffdb9c/schema)
