Gets the status of Bot Export request and also provides the download link of the bot export copy after the export is completed. Refer here for initiating Bot Export API.
To use this API, app needs the Admin API Scope of Bot Export under Bot Definition.
GEThttps://{{host}}/api/public/bot/{{BotID}}/export/status
Query Parameters
Parameter | Description |
---|---|
host | Environment URL, for example,https://bots.kore.ai |
BotID | 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 \
http://{{host}}/api/public/bot/{{BotID}}/export/status \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
Sample Response
{ "_id": "ber-xxxxx-xxx-xxx-xxx-xxxxx", "streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx", "createdBy": "u-xxxxx-xxx-xxx-xxx-xxxxx", "exportType": "published", "requestType": "Botexport", "status": "success", "createdOn": "2018-12-05T07:18:40.028Z", "__v": 0, "downloadURL": "{{url}}", "fileId": "{{file-id}", "store": { "urlParams": "url-params" }, "fileSize": "947" }