Skip to content

Bot Import Status API

To get the status of the bot import request initiated using the Import Bot API for a new bot or an existing bot.

Note

This API requires the JWT generated by an application created on the Bot Admin Console.

Method GET
Endpoint https://{{host}}/api/public/bot/import/status/{{BotImportBIR}}
Content Type application/json
Authorization auth: {{JWT}}

See How to generate the JWT Token.

API Scope
  • Bot Builder: Not Applicable
  • Admin Console: Bot Definition > Bot Import

Query Parameters

PARAMETER DESCRIPTION MANDATE
host The environment URL. For example, https://bots.kore.ai Required
BotImportBIR bir-xxxxxxx-xxx-xxxx-xxxxx-xxxxxxxxxx. The BIR ID is found in the response of the Import Bot as a New Bot API endpoint. Required

Sample Request

curl -X GET 'https://{{host}}/api/public/bot/import/status/bir-xxxxxxx-xxx-xxxx-xxxxx-xxxxxxxxxx' \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \

Body Parameters

No Body Parameters passed.

Sample Response

{
    "_id": "bir-5fxxxxxx-a0xx-52xx-axxf-f3xxxxxxxxxx",
    "status": "success",
    "streamRefId": "d1xxxxxx-bxx7-5cxx-axx7-a8xxxxxxxxxx",
    "statusLogs": [
        {
            "taskType": "importRequest",
            "taskName": "SampleBot",
            "status": "success"
        },
        {
            "taskType": "Bot Definition",
            "taskName": "SampleBot",
            "status": "success"
        },
        {
            "taskType": "IdpConfigurations",
            "taskName": "IdpConfigurations",
            "status": "success"
        },
        {
            "taskType": "CustomTemplates",
            "taskName": "CustomTemplates",
            "status": "success"
        },
        {
            "taskType": "BotFunctions",
            "taskName": "Bot Functions",
            "status": "success"
        },
        {
            "taskType": "Widget",
            "taskName": "UnderwritingExplanation",
            "status": "success"
        },
        {
            "taskType": "Dialog",
            "taskName": "Test Firebase Service",
            "status": "success"
        },
        {
            "taskType": "Form",
            "taskName": "BloodPressure",
            "status": "success"
        },
        {
            "taskType": "Widget",
            "taskName": "WidgetPhysique",
            "status": "success"
        },
        {
            "taskType": "Dialog",
            "taskName": "ShowDiseaseList",
            "status": "success"
        },
        {
            "taskType": "Event",
            "taskName": "TASK_FAILURE_EVENT",
            "status": "success"
        },
        {
            "taskType": "Event",
            "taskName": "WELCOME_MESSAGE_EVENT",
            "status": "success"
        },
        {
            "taskType": "Event",
            "taskName": "INTENT_UNIDENTIFIED",
            "status": "success"
        },
        {
            "taskType": "Event",
            "taskName": "CONVERSATION_END",
            "status": "success"
        },
        {
            "taskType": "KnowledgeTasks",
            "taskName": "KnowledgeTasks",
            "status": "success"
        },
        {
            "taskType": "Utterences",
            "taskName": "Utterences",
            "status": "success"
        },
        {
            "taskType": "Patterns",
            "taskName": "Patterns",
            "status": "success"
        },
        {
            "taskType": "BotVariables",
            "taskName": "BotVariables",
            "status": "success"
        },
        {
            "taskType": "SmallTalk",
            "taskName": "SmallTalk",
            "status": "success"
        },
        {
            "taskType": "importBot",
            "taskName": "SampleBot",
            "status": "success"
        }
    ],
    "createdBy": "u-adxxxxxx-e9xx-5xxd-axxc-21xxxxxxxxxx",
    "requestType": "Botimport",
    "createdOn": "2022-07-29T07:24:17.496Z",
    "__v": 0,
    "streamId": "st-8axxxxxx-0xxb-5axx-9xx2-97xxxxxxxxxx"
}