To export the ML utterances of a bot by creating a request ID to generate the download link of the bot using the ML Utterance Export Status API.
| Method | POST |
| Endpoint | https://{{host}}/api/public/bot/{{BotID}}/mlexport |
| Content Type | application/json |
| Authorization |
|
| API Scope |
|
Query Parameters
| Parameter | Description | Mandate |
|---|---|---|
| host | The environment URL. For example, https://bots.kore.ai |
Required |
| BotId | Bot ID or Stream ID can be accessed under General Settings on the Bot Builder. | Required |
Sample Request
curl -X POST \ 'https://{{host}}/api/public/bot/{{bot_id}}/mlexport?state=configured&=&type=csv' \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json'
Body Parameters
No body parameters are passed.
Sample Response
{
"status": "IN_PROGRESS",
"percentageComplete": 0,
"streamId": "st-bcxxxxxx-9xx1-5xx1-axx3-fbxxxxxxxxxx",
"createdBy": "u-0xxxxxx4-axxf-5xx7-bxx4-73xxxxxxxxxx",
"jobType": "ML_UTTERANCE",
"action": "EXPORT",
"fileType": "JSON",
"statusLogs": [],
"_id": "dx-cxxxxxxa-axxe-5xx4-axxc-74xxxxxxxxxx",
"lMod": "2019-12-27T11:40:06.000Z",
"createdOn": "2019-12-27T11:40:06.746Z",
"__v": 0
}