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

# Export Batch Test Suite API

<Badge icon="arrow-left" color="gray">[Back to API List](/ai-for-service/apis/automation/api-list)</Badge>

Exports test cases from a Batch Test Suite and returns a download link. This API supports exporting test cases created through file upload only — it does not support test data added manually.

| Property          | Value                                                                                                                              |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| **Method**        | POST                                                                                                                               |
| **Endpoint**      | `https://{{host}}/api/public/bot/{{botId}}/testsuite/{{testSuiteName}}/export`                                                     |
| **Content Type**  | `application/json`                                                                                                                 |
| **Authorization** | `auth: {{JWT}}` — See [How to generate the JWT Token](/ai-for-service/apis/automation/api-introduction/#generating-the-jwt-token). |
| **API Scope**     | App Builder: Batch Tests Management; Admin Console: Batch Tests Management                                                         |

## Query Parameters

| Parameter       | Description                                                                                | Required |
| --------------- | ------------------------------------------------------------------------------------------ | -------- |
| `host`          | The environment URL. For example, `https://platform.kore.ai`                               | Required |
| `BotID`         | Bot ID or Stream ID, accessible under **General Settings** on the App Builder.             | Required |
| `testSuiteName` | Name of the test suite to export. **Note:** Only Custom Batch Test Suites can be exported. | Required |

## Sample Request

```bash theme={null}
curl -X POST \
  https://{host}/api/public/bot/{botId}/testsuite/{testSuiteName}/export \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'bot-language: {{language-code}}'
```

## Body Parameters

No body parameters are passed.

## Sample Response

```json theme={null}
{
    "downloadUrl": "{{downloadURL}}",
    "name": "Batch Test Name",
    "description": "Batch Test Description"
}
```
