{"id":18058,"date":"2018-08-24T11:29:43","date_gmt":"2018-08-24T11:29:43","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-3\/?post_type=docs&#038;p=15176"},"modified":"2022-12-23T09:46:12","modified_gmt":"2022-12-23T09:46:12","slug":"apis","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/api-guide\/apis\/","title":{"rendered":"Using Kore.ai APIs"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><span style=\"font-weight: 400\">The Kore.ai XO Platform allows you to develop Virtual Assistants using secured APIs. All key developer activities like creation, import and export, training, and publishing are available using these APIs. Key account management activities like managing XO Platform access, managing admin, and roles can also be performed via secured public APIs. For a complete list of APIs and usage instructions <\/span><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/api-guide\/api-list\/\"><span style=\"font-weight: 400\">refer here<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Authentication of the API requests involves the following two steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><strong>Creating an App<\/strong><span style=\"font-weight: 400\">: As a part of creating the app, you need to select the API scopes for the App, which allows you to provide access to only the selected APIs to the app.<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><strong>XO Platform API Scopes<\/strong><span style=\"font-weight: 400\">: Assistant developers can define specific API Scopes from the XO Platform.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Bot Admin Console API Scopes<\/strong><span style=\"font-weight: 400\">: Account administrators can define API Scopes to access any of the assistants built in their accounts from the Admin Console.<\/span><\/li>\n<\/ol>\n<li style=\"font-weight: 400\"><strong>Associate API Scopes to an App<\/strong><span style=\"font-weight: 400\">: To allow a client application to access the XO Platform APIs, you need to associate the client app with the assistant.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">Additionally, you can secure the connections with the Platform by the following methods:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><strong>Enforce JTI Claim<\/strong><span style=\"font-weight: 400\"> \u2013 Once enabled, the Platform would accept the requests only from calls with the JTI Claim in the requests and those without JTI Claim would be rejected<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Enforce JWE Encryption<\/strong><span style=\"font-weight: 400\">\u2013 Generating JWT token: To access the XO Platform\u2019s public APIs, the application making the API request requires authentication. Kore.ai uses the JWT (JSON Web Token) mechanism to handle the authentication. For a quick overview of the JWT token, read <\/span><a href=\"https:\/\/jwt.io\/introduction\/\"><span style=\"font-weight: 400\">Introduction to JWT tokens<\/span><\/a><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\">Use the Client ID and Client Secret of the client app from above to generate a JWT token. This token needs to be passed as a part of each API request for authorization.<\/span><\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><\/div><\/section><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Creating_Managing_Apps\"><span style=\"font-weight: 400\">Creating &amp; Managing Apps<\/span><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"XO_Platform\"><span style=\"font-weight: 400\">XO Platform<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400\">The following steps let you create a Client App from the XO Platform:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select <\/span><strong>Deploy<\/strong><span style=\"font-weight: 400\"> tab from the top menu<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From the left menu, click <\/span><strong>Integrations &gt; Manage Apps<\/strong><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>New App<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the Create Client App page:<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">enter a <\/span><em><span style=\"font-weight: 400\">name<\/span><\/em><span style=\"font-weight: 400\"> for the app,<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">enforce JTI and\/or JWE as per your requirements<\/span><\/li>\n<\/ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Next<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Done<\/strong><span style=\"font-weight: 400\">.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070411\/add-app-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-48149\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070411\/add-app-2.png\" alt=\"\" width=\"503\" height=\"510\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070411\/add-app-2.png 838w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070411\/add-app-2-296x300.png 296w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070411\/add-app-2-100x100.png 100w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You will be directed to the Manage Apps page, where all the apps associated with this assistant will be displayed.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Once you select an app, the Client ID and Client Secret sections appear. Here is where you will also find a list of places where this app is used, like web SDK, botkit SDK, etc.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can also use this screen to <\/span><strong>delete<\/strong><span style=\"font-weight: 400\"> apps by using the trash icon against the respective app. <\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea;height: 18px\">\n<tbody>\n<tr style=\"height: 18px\">\n<td style=\"width: 100%;height: 18px\"><strong><em>Note<\/em><\/strong><em><span style=\"font-weight: 400\">, Only the Bot Owner can delete an app.<\/span><\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070438\/app-details-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-48158\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070438\/app-details-3.png\" alt=\"\" width=\"822\" height=\"366\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070438\/app-details-3.png 1922w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070438\/app-details-3-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070438\/app-details-3-1024x456.png 1024w\" sizes=\"auto, (max-width: 822px) 100vw, 822px\" \/><\/a><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea;height: 18px\">\n<tbody>\n<tr style=\"height: 18px\">\n<td style=\"width: 100%;height: 18px\"><strong><em>Note<span style=\"font-weight: 400\">: Before the release of ver 7.3 of the Platform, apps were associated with the user. The apps have been associated with an assistant since the release of ver 7.3 of the Platform. Developers, other than the bot owner, with Apps and Scopes permission, will have access to these apps. To ensure backward compatibility, if an app is being used by more than one assistant, then the app will be duplicated with the same credentials for each of these assistants.<\/span><\/em><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Bots_Admin_Console\"><span style=\"font-weight: 400\">Bots Admin Console<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400\">The following steps let you create a Client App from the Bot Admin Console:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the side-navigation panel of the Bots Admin homepage, click <\/span><strong>Security &amp; Control &gt; API Scopes<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the API Scopes page, click <\/span><strong>New<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To create a new app, click the<\/span><strong> Manage Apps <\/strong><span style=\"font-weight: 400\">link.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>New App<\/strong><span style=\"font-weight: 400\">,<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">enter a name and<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">enforce JTI and\/or JWE as per your requirements<\/span><\/li>\n<\/ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click<\/span><strong> Save<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Data_Tables\"><span style=\"font-weight: 400\">Data Tables<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400\">The Data table option has been added to the Platform in v7.3 of the Platform (<\/span><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/advanced-topics\/data-as-a-service\/\"><span style=\"font-weight: 400\">see here for more<\/span><\/a><span style=\"font-weight: 400\">). Access control to these would be different from the XO Platform and Bot Admin Console access controls.<\/span><\/p>\n<p><span style=\"font-weight: 400\">You can define apps to securely access the data from data tables and data views.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can create one or more apps and they would be owned by you, <\/span><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/advanced-topics\/data-as-a-service\/#App_Definition\"><span style=\"font-weight: 400\">see here for how<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">These apps can be used for:<\/span><\/li>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Accessing the data tables and views over public APIs<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Accessing the data tables and views using Service Node<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Accessing the export and import API for the definition of data table and views<\/span><\/li>\n<\/ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can grant this app read, write, and delete permissions to each table and view separately, <\/span><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/advanced-topics\/data-as-a-service\/#Assignments\"><span style=\"font-weight: 400\">see here for more<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070444\/datatable-app.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-48161\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070444\/datatable-app.png\" alt=\"\" width=\"795\" height=\"354\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070444\/datatable-app.png 1922w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070444\/datatable-app-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070444\/datatable-app-1024x456.png 1024w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/a><\/span><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><\/div><\/section><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Associating_API_Scopes\"><span style=\"font-weight: 400\">Associating API Scopes<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">Once created a client app needs to be associated with API scopes.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"XO_Platform-2\"><span style=\"font-weight: 400\">XO Platform<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400\">The following steps let you associate API Scopes to a Client App from the XO Platform:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From your assistant, go to <\/span><strong>Deploy &gt; Integrations &gt; API Scopes<\/strong><span style=\"font-weight: 400\"> and click <\/span><strong>Create API Scope<\/strong><span style=\"font-weight: 400\"> \/ <\/span><strong>New<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the New API Scope Mapping page, from the <\/span><strong>App <\/strong><span style=\"font-weight: 400\">drop-down list, select an existing client app for authentication.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Once you select an app, the Client ID and Client Secret sections appear. You can copy the values.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070431\/api-scopes.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-48155\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070431\/api-scopes.png\" alt=\"\" width=\"740\" height=\"328\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070431\/api-scopes.png 1931w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070431\/api-scopes-300x133.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070431\/api-scopes-1024x454.png 1024w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/a><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Under the Scopes section, select the APIs for which you want the client app to have access. The apps cannot access the APIs that aren\u2019t selected here. The following are the list of scopes that can be selected:<\/span><\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Bots_Admin_Console-2\"><span style=\"font-weight: 400\">Bots Admin Console<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400\">The following steps let you associate API Scopes to a Client App from the Bot Admin Console:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the side-navigation panel of the Bots Admin homepage, click <\/span><strong>Security &amp; Control &gt; API Scopes<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the API Scopes page, click <\/span><strong>New<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the New API Scope Mapping page, from the <\/span><strong>App <\/strong><span style=\"font-weight: 400\">drop-down list, select an existing client app for authentication. To create a new app, click the<\/span><strong> Manage Apps <\/strong><span style=\"font-weight: 400\">link.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Once you select an app, the <\/span><em><span style=\"font-weight: 400\">Client ID and Client Secret<\/span><\/em><span style=\"font-weight: 400\"> section appear. Copy the values.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can also use this screen to <\/span><strong>delete<\/strong><span style=\"font-weight: 400\"> apps by using the trash icon against the respective app.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Under the Scopes section, select the APIs for which you want the client app to have access.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/bot-admin\/security-control\/security-module-overview\/#API_Scopes\"><span style=\"font-weight: 400\">Refer here for the list of API scopes<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070421\/admin-scopes.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-48152\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070421\/admin-scopes.png\" alt=\"\" width=\"780\" height=\"334\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070421\/admin-scopes.png 1951w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070421\/admin-scopes-300x128.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20221005070421\/admin-scopes-1024x438.png 1024w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/a><\/span><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><\/div><\/section><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"List_of_Available_API_Scopes\"><span style=\"font-weight: 400\">List of Available API Scopes<\/span><\/span><\/h2>\n<table>\n<tbody>\n<tr>\n<th><strong>SCOPE<\/strong><\/th>\n<th><strong>DESCRIPTION<\/strong><\/th>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Intent and Entity Detection<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to allow intent and entity detection from an utterance using secured APIs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">User Engagement Trend<\/span><\/td>\n<td><span style=\"font-weight: 400\">To retrieve the user engagement trend.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Batch Tests Execution<\/span><\/td>\n<td><span style=\"font-weight: 400\">To execute Batch Test Suites and get results.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Batch Tests Management<\/span><\/td>\n<td><span style=\"font-weight: 400\">To create, modify and delete Batch Test Suites and results.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Chat History<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to retrieve chat transcripts of this assistant using secured APIs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Debug Logs<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to retrieve debug logs of this assistant using secured APIs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Bot Export<\/span><\/td>\n<td><span style=\"font-weight: 400\">Export definition of a selected assistant.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Import Variables<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to import variables of this assistant using secured APIs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Export Variables<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to export variables of this assistant using secured APIs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Proactive Messages<\/span><\/td>\n<td><span style=\"font-weight: 400\">To proactively send messages to the end-users via the supported channels.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Train ML<\/span><\/td>\n<td><span style=\"font-weight: 400\">To match a given utterance against the NL model to identify possible intents and entities present in the utterance.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Train Faq<\/span><\/td>\n<td><span style=\"font-weight: 400\">To match a given faq against the faq model.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Utterances Import<\/span><\/td>\n<td><span style=\"font-weight: 400\">To import utterances for a task.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Utterances Export<\/span><\/td>\n<td><span style=\"font-weight: 400\">To export utterances for a task.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Logs History<\/span><\/td>\n<td><span style=\"font-weight: 400\">To retrieve the change logs for the particular assistant.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Bot Sessions<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to retrieve conversation sessions.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Billing Sessions<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to retrieve billing sessions.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Custom Reports<\/span><\/td>\n<td><span style=\"font-weight: 400\">To retrieve the data associated with custom widgets and reports.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">RCS Message Events<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope for opting in users to RCS Business Messaging channel and sending broadcast messages.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Metrics<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to retrieve Metrics information related to Intents Found, Intents not Found, Failed Tasks, Successful Tasks and Performance Logs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Manage Knowledge Graph<\/span><\/td>\n<td><span style=\"font-weight: 400\">To export the complete definition of the Knowledge Graph of this assistant.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">NLP Configurations<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to update the NLP thresholds and configurations.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Update FAQs<\/span><\/td>\n<td><span style=\"font-weight: 400\">Assign this scope to update the FAQ Responses and FAQ Status.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea;height: 18px\">\n<tbody>\n<tr style=\"height: 18px\">\n<td style=\"width: 100%;height: 18px\"><strong><em>Note<span style=\"font-weight: 400\">: Once enabled, the API Scopes need to be Published. <\/span><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/publish\/publishing-bot\/#Publishing_Tasks\"><span style=\"font-weight: 400\">Follow the Publish<\/span><\/a><span style=\"font-weight: 400\"> procedure ensuring that the API Scopes are selected.<\/span><\/em><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><\/div><\/section><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Generating_the_JWT_Token\"><span style=\"font-weight: 400\">Generating the JWT Token<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">Once you have associated the API scopes to a client app, you need to generate the JWT token for API requests.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can use the following link to generate the token. <\/span><a href=\"https:\/\/developer.kore.ai\/v9-3\/tools\/jwt\/\"><span style=\"font-weight: 400\">Click here<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the Algorithm dropdown list, select <strong>HS256<\/strong>.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Scroll down to the Decoded section.<br \/><\/span>Replace the contents in the <strong>Payload <\/strong>box with the Client ID of the app copied in the previous section.<br \/><code>{\u00a0<\/code><br \/><code>\u00a0\"appId\": \"your-client-id-here\" <\/code><br \/><code>}<\/code><br \/>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea;height: 18px\">\n<tbody>\n<tr style=\"height: 18px\">\n<td style=\"width: 100%;height: 18px\"><strong><em>Note<span style=\"font-weight: 400\">: The XO Platform validates the token only when it is generated exactly as \u201cappId\u201d. The Platform doesn\u2019t validate tokens generated with any other formats such as \u201cApp ID\u201d \u201cappid\u201d or \u201capp ID\u201d.<\/span><\/em><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li style=\"font-weight: 400\"><span>In the <\/span><strong>Verify Signature<\/strong><span> box, for HS256 encoding, enter the Client Secret copied from the previous section in the box with the text <\/span><strong>your-256-bit-secret<\/strong>.<span style=\"font-weight: 400\">\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Copy the generated JWT token from the Encoded section on the top or use the <\/span><strong>Copy JWT<\/strong><span style=\"font-weight: 400\"> button at the bottom.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">This token can be used to access the required API and it needs to be passed as a part of each API request for authorization.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can use the API Collection to test the APIs from your Postman setup. <\/span><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/api-guide\/api-collection\/\"><span style=\"font-weight: 400\">See here for more<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ol>\n<ol>\n<li style=\"list-style-type: none\"><\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><\/div><\/section><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"The Kore.ai XO Platform allows you to develop Virtual Assistants using secured APIs. All key developer activities like creation, import and export, training, and publishing are available using these APIs. Key account management activities like managing XO Platform access, managing admin, and roles can also be performed via secured public APIs. For a complete list...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-18058","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/18058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/comments?post=18058"}],"version-history":[{"count":22,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/18058\/revisions"}],"predecessor-version":[{"id":49910,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/18058\/revisions\/49910"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/media?parent=18058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/categories?post=18058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/tags?post=18058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}