Documentation Index Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Back to API List
Retrieves a list of questions and nodes under the Knowledge task. Supports parameters such as botId, language, mode (configured/published), and nodeName.
Method GET Endpoint https://{{host}}/api/public/bot/{{botId}}/v2/faqs?state=&limit=&offset=&nodeName=&withallchild=&type=&language=enContent Type application/jsonAuthorization auth: {{JWT}} See How to generate the JWT Token .API Scope Knowledge AI: Manage Knowledge Graph; Admin Console: Manage Knowledge Graph
Path Parameters
Parameter Description Required hostThe environment URL. For example, https://platform.kore.ai/ Required BotIdBot ID or Stream ID found under App Settings on the App Profile. Required
Query Parameters
Parameter Description Required stateThe mode or state of the app — Published or Configured. Required limitNumber of records to fetch. Default and maximum is 50. Optional offsetNumber of records to skip. Defaults to 0. Optional nodeNameThe ID of nodes in the Knowledge tasks section. Optional withallchildWhether to include child nodes. Accepts true or false. Optional typeType of FAQs or tasks to fetch. Optional languageBot language code (for example, en for English, de for German). Required searchSearch the KG using a reference ID or display name. Optional
Sample Request
curl --location 'https: //localhost/api/public/bot/st-8b87fxxxxx4e90e/v2/faqs?limit=3&offset=0&search=&type=all&language=en&state=configured&nodeName=A&withallchild=true' \
--header 'auth: eyJfxxxxxI 6 IkpXVCJ 9 .eyJhcHBJZCI 6 ImNzLWJjZTZiMfxxxxxNTFkYS 1 iYjNhLWY 5 MzkwMDM 0 Mjg 2 ZiJ 9.40 rpnPhnY 1 CnDPwWfxxxxx'
Sample Response
{
"faqs" : [
{
"_id" : "673d8ec3c2c0874923ad8a7a" ,
"streamId" : "st-8b873b9c-15cc-5167-a04a-1c801fxxxxxx" ,
"conditionalResp" : false ,
"questionPayload" : {
"question" : "Dup AA Node1" ,
"tagsPayload" : []
},
"responseType" : "message" ,
"answerPayload" : [
{
"_id" : "mt-979b11e9-7187-5d8a-918b-6b6801xxxxxx" ,
"streamId" : "st-8b873b9c-15cc-5167-a04a-1c801f5xxxxx" ,
"channel" : "default" ,
"createdBy" : "u-83c6112b-d759-5e13-8dcf-6995fabxxxxx" ,
"createdOn" : "Wed Nov 20 2024 12:54:51 GMT+0530 (India Standard Time)" ,
"lModBy" : "u-83c6112b-d759-5e13-8dcf-6995fabxxxxx" ,
"lMod" : "Wed Nov 20 2024 12:54:51 GMT+0530 (India Standard Time)" ,
"text" : "Sample%20Ans" ,
"type" : "basic"
}
],
"subQuestions" : [],
"subAnswers" : [],
"parent" : "492e6eab-8da1-41b9-bc5a-09ccfxxxxxxx" ,
"leafterm" : "A" ,
"createdOn" : "2024-11-20T07:24:51.445Z" ,
"createdBy" : "u-83c6112b-d759-5e13-8dcf-6995fabxxxxx" ,
"modifiedOn" : "2024-11-20T07:24:51.445Z" ,
"lastModifiedBy" : "u-83c6112b-d759-5e13-8dcf-6995fabxxxxx" ,
"botName" : "Test5" ,
"knowledgeTaskId" : "673d8c93c2c0874923xxxxxx" ,
"sortId" : 1732087491445 ,
"language" : "en" ,
"faqStatus" : true ,
"editLocked" : false ,
"isPublished" : true ,
"refId" : "74e7d27f-bcb1-5dab-a339-957a415xxxxx" ,
"label" : "Dup A Node1" ,
"faqLinkedBy" : [],
"__v" : 0 ,
"fullPath" : [
"Test5" ,
"Node1" ,
"A"
]
}
],
"moreAvailable" : true ,
"count" : 41
}