> ## 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.

# Export Batch Test Suite API

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

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 doesn't 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](https://koreai.mintlify.site/ai-for-service/apis/automation/api-introduction.md#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"
}
```


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