ML Utterances Export API Implementation.

Here are the implementation steps to ML-Utterances export using the API.


  1. We suggest you to always use postman for testing purpose with the following sample request format. Open postman > import > Paste raw text

    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’

  2. Go to bot builder > create a new api scopes (from bot builder)> update all the required scopes (from the documentation) > Publish the bot.

  3. Using please generate a JWT token. Make sure the payload looks the same as the screenshot. Paste your app id (client id) and client secret.

  4. Paste all the collected details in the sample request (url, bot id, JWT token)
    Shared the screenshot of the request created by us for testing purpose.


After using the ML Utterances Export API, to generate the download link, please use the ML Utterance Export Status API .

Sharing the documentation link for ML Utterance Export Status API.


  1. Please create the request same as the ML Utterances Export API, but with minute changes.

    curl -X GET
    https://{{host}}/api/public/bot/{{bot ID}}/mlexport/status
    -H ‘auth: {{YOUR_JWT_ACCESS_TOKEN}}’
    -H ‘content-type: application/json’ \

  2. Replace the host url, bot ID and JWT token in the above sample request.

  3. Test the request in postman, in response body it will give you a download link url.

4. Copy and paste the link in any browser and it will generate the csv exported file.

1 Like