---
title: "Export a bot"
method: GET
path: "/bot/{id}/export"
tags: ["Bot"]
---

# Export a bot

`GET /bot/{id}/export`

## Path parameters

- `id` string, required

## Query parameters

- `botVersion` string

## Response `200`

Success

- ExportBotResponse
  - `id` string, nullable — The bot ID
  - `kdl` string, nullable — The KDL for the bot
  - `version` string, nullable — The version of the bot

---

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