To get the status of the ML training.
To use this API, app needs the Admin API Scope of Train ML under Test and Train.
GET https://{{host}}/api/public/bot/{{BotID}}/ml/train/status
Path Parameters
| Parameter | Required/Optional | Description |
|---|---|---|
| host | Required | Environment URL, for example, https://bots.kore.ai |
| BotID | Required | Bot ID or Stream ID. You can access it from the General Settings page of the bot. |
Authorization
Invoke the API with JWT in the header with the following syntax:
auth: {{JWT}}
Response Content Type
application/json
Sample Request
curl -X GET \
https://{{host}}/api/public/bot/{{BotId}}/ml/train/status \
-H 'Content-Type: application/json' \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
Sample Response
{
"trainingStatus": "Finished",
"isMlInSyncWithSentences": true,
"isMlInSyncWithSynonyms": true,
"isMlInSyncWithMlparams": true,
"isMlInSyncWithTraits": true
}
