Get a project's storage rules
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/storage-rulesconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/storage-rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/storage-rules"
response = requests.get(url)
print(response.text){
"project_id": "<string>",
"applies_to": "agents",
"rules": {
"version": 1,
"memory": {
"kinds": [
"memory"
],
"min_tags": 10,
"require_thread": true,
"title_min": 100,
"title_max": 100,
"max_content_chars": 16384
},
"document": {
"kinds": [
"prd"
],
"content_types": [
"text/plain"
],
"max_bytes": 5242880,
"require_source_ref": true
}
},
"effective": {
"memory": {
"kinds": [
"memory"
],
"min_tags": 10,
"require_thread": true,
"title_min": 100,
"title_max": 100,
"max_content_chars": 16384
},
"document": {
"kinds": [
"prd"
],
"content_types": [
"text/plain"
],
"max_bytes": 5242880,
"require_source_ref": true
}
},
"revision": 1,
"updated_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}Projects
Get a project's storage rules
What the project lets agents store in its brain (#689): who the rules bind (applies_to: agents, the default, or everyone), the rules as set, and effective, every rule with unset keys filled from the system limits. A project with no rules answers revision 0, rules and the system limits. Needs the read role, so an agent at hookie:read can read them (MCP: get_project_storage_rules); the project context bundle also carries applies_to and effective as storage_rules when the project has rules. A write that breaks a rule is refused with 422 and the StorageRuleViolation body.
GET
/
admin
/
api
/
projects
/
{project_id}
/
storage-rules
Get a project's storage rules
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/storage-rulesconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/storage-rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/storage-rules"
response = requests.get(url)
print(response.text){
"project_id": "<string>",
"applies_to": "agents",
"rules": {
"version": 1,
"memory": {
"kinds": [
"memory"
],
"min_tags": 10,
"require_thread": true,
"title_min": 100,
"title_max": 100,
"max_content_chars": 16384
},
"document": {
"kinds": [
"prd"
],
"content_types": [
"text/plain"
],
"max_bytes": 5242880,
"require_source_ref": true
}
},
"effective": {
"memory": {
"kinds": [
"memory"
],
"min_tags": 10,
"require_thread": true,
"title_min": 100,
"title_max": 100,
"max_content_chars": 16384
},
"document": {
"kinds": [
"prd"
],
"content_types": [
"text/plain"
],
"max_bytes": 5242880,
"require_source_ref": true
}
},
"revision": 1,
"updated_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}Response
The project's storage rules