Context vault scope/project hierarchy
curl --request GET \
--url https://api.memcontext.in/api/context-vault/hierarchy \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/context-vault/hierarchy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/context-vault/hierarchy"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"global": {
"count": 123,
"projects": [
{
"name": "<string>",
"value": "<string>",
"count": 123
}
]
},
"scopes": [
{
"name": "<string>",
"count": 123,
"projects": [
{
"name": "<string>",
"value": "<string>",
"count": 123
}
]
}
]
}Context Vault
Context vault scope/project hierarchy
GET
https://api.memcontext.in
/
api
/
context-vault
/
hierarchy
Context vault scope/project hierarchy
curl --request GET \
--url https://api.memcontext.in/api/context-vault/hierarchy \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/context-vault/hierarchy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/context-vault/hierarchy"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"global": {
"count": 123,
"projects": [
{
"name": "<string>",
"value": "<string>",
"count": 123
}
]
},
"scopes": [
{
"name": "<string>",
"count": 123,
"projects": [
{
"name": "<string>",
"value": "<string>",
"count": 123
}
]
}
]
}Authorizations
ApiKeyAuthCookieAuth
API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.
Query Parameters
Optional vault inside the workspace. Defaults to the workspace's default vault.
Response
200 - application/json
Scope and project counts for workspace memories.
