1. Home
  2. Kore.ai Conversational Platform
  3. Using Kore.ai APIs
  4. ML Utterances Export API

ML Utterances Export API

Used to export the ML utterances of a bot. It creates a request ID from which we can generate the Download link of the bot using ML Utterance Export Status API.

POST https://{{host}}/api/public/bot/{{bot_id}}/mlexport?state={{state}}&&type={{filetype}}

Query Parameters

Parameter Required/Optional Description
host Required Environment URL, for example, https://bots.kore.ai
bot_id Required Bot ID or Stream ID. You can access it from the General Settings page of the bot.
state Required The state of the bot – configured or published
type Required The type of file – csv or json

Authorization

Invoke the API with JWT in the header with the following syntax:

auth: {{JWT}}

Response Content Type

application/json

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' \
-d '{}'
Was this article helpful to you? Yes No