import requests
url = "https://api.diga.io/v1/knowledge/base/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"knowledge_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"item_count": 123,
"created_date": "2023-11-07T05:31:56Z",
"description": "<string>"
}Retrieve a specific knowledge base by ID
import requests
url = "https://api.diga.io/v1/knowledge/base/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"knowledge_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"item_count": 123,
"created_date": "2023-11-07T05:31:56Z",
"description": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Unique identifier for the knowledge base
Name of the knowledge base
List of knowledge item IDs associated with this base
Number of knowledge items in this base
When the base was created
Optional description of the knowledge base