> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Bot Export Status API

[Back to API List](https://koreai.mintlify.site/ai-for-service/apis/automation/api-list)

Gets the status of a Bot Export request and provides the download link after the export completes. Refer to [Bot Export API](https://koreai.mintlify.site/ai-for-service/apis/automation/bot-export) to initiate an export.

| Field | Value |
| - | - |
| **Method** | GET |
| **Endpoint** | `https://{{host}}/api/public/bot/{{BotID}}/export/status` |
| **Content Type** | `application/json` |
| **Authorization** | `auth: {{JWT}}` See [How to generate the JWT Token](https://koreai.mintlify.site/ai-for-service/apis/automation/api-introduction.md#generating-the-jwt-token). |
| **API Scope** | App Builder: Bot Export; Admin Console: Bot Definition > Bot Export |

## Query Parameters

| Parameter | Description | Required |
| - | - | - |
| `host` | The environment URL. For example, `https://platform.kore.ai`. | Required |
| `BotID` | Bot ID or Stream ID. Access it under **General Settings** on the App Builder. | Required |

## Sample Request

```bash theme={null}
curl --location 'https://{{host}}/api/public/bot/{{BotID}}/export/status' \
--header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
--header 'content-type: application/json' \
--data '{
    "exportType": "latest"
}'
```

## Body Parameters

| Parameter | Description | Required |
| - | - | - |
| `exportType` | Bot type: `latest` or `published`. | Required |

## Sample Response

```json expandable=true theme={null}
{
    "_id": "ber-xxxxx-xxx-xxx-xxx-xxxxx",
    "botId": "st-xxxxx-xxx-xxx-xxx-xxxxx",
    "createdBy": "u-xxxxx-xxx-xxx-xxx-xxxxx",
    "exportType": "latest",
    "requestType": "Botexport",
    "status": "success",
    "createdOn": "2018-12-05T07:18:40.028Z",
    "__v": 0,
    "downloadURL": "{{url}}",
    "fileId": "{{file-id}}",
    "store": {
        "urlParams": "url-params"
    },
    "fileSize": "947"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.