1. Home
  2. Kore.ai Conversational Platform
  3. Using Kore.ai APIs
  4. Import Bot as a New Bot API
  5. Bot Import Status API

Bot Import Status API

Used to get the status of the bot import request initiated using Import Bot as New Bot API or Import Bot into an Existing Bot API.

GET https://{{host}}/api/public/bot/import/status/{{request_id}}

Query Parameters

 

Parameter Description
host Environment URL, for example, https://bots.kore.ai
request_id bir-xxxxxxx-xxx-xxxx-xxxxx-xxxxxxxxxx

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/import/status/bir-xxxxxxx-xxx-xxxx-xxxxx-xxxxxxxxxx \
  -H 'auth: YOUR_JWT_ACCESS_TOKEN' \

Sample Response

{
    "_id": "bir-xxxxxxx-xxx-xxxx-xxxxx-xxxxxxxxxx",
    "streamRefId": "f6e63f2d-cw20-52b0-bbc5-638add8dba26",
    "statusLogs": [
        {
            "taskType": "importRequest",
            "taskName": "Sample Bot",
            "status": "success"
        },
        {
            "taskType": "Bot Definition",
            "taskName": "Sample Bot",
            "status": "success"
        },
        {
            "taskType": "CustomTemplates",
            "taskName": "CustomTemplates",
            "status": "success"
        },
        {
            "taskType": "BotVariables",
            "taskName": "BotVariables",
            "status": "success"
        },
        {
            "taskType": "Dialog",
            "taskName": "Task 1",
            "status": "success"
        },
        {
            "taskType": "Dialog",
            "taskName": "Task 2",
            "status": "success"
        },
        {
            "taskType": "Utterances",
            "taskName": "Utterances",
            "status": "success"
        },
        {
            "taskType": "importBot",
            "taskName": "Sample Bot",
            "status": "success"
        }
    ],
    "createdBy": "u-3ae3ed39-a65b-5b2c-b55b-85864a8202c3",
    "requestType": "Botimport",
    "status": "success",
    "createdOn": "2018-12-05T07:45:14.376Z",
    "__v": 0,
    "streamId": "st-b4542w96-49ec-5d95-a120-c6244fc23777"
}
Was this article helpful to you? Yes No