import requests
url = "https://api.diga.io/v1/knowledge/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"used_bytes": 123,
"item_count": 123,
"limit_bytes": 123
}Get knowledge storage usage for the current company. Returns used bytes, limit bytes, and item count.
import requests
url = "https://api.diga.io/v1/knowledge/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"used_bytes": 123,
"item_count": 123,
"limit_bytes": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.