curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/brain/readsconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/brain/reads', 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}/brain/reads"
response = requests.get(url)
print(response.text){
"reads": [
{
"id": "<string>",
"at": "2023-11-07T05:31:56Z",
"project_id": "<string>",
"user_id": "<string>",
"actor_kind": "person",
"credential": "<string>",
"via": "console",
"operation": "knowledge",
"items": [
{
"k": "doc",
"id": "<string>",
"name": "<string>",
"p": "<string>"
}
],
"item_count": 123,
"status": "ok",
"project_name": "<string>",
"user_email": "<string>",
"agent_name": "<string>",
"query": "<string>"
}
],
"total": 123,
"limit": 123,
"offset": 123
}List a project's Brain reads
What agents and people read from this project’s brain (#686), on every plan. Kept for the plan’s Brain history retention (Free 7 days, Starter 30, Pro 90, Team and Ultimate 365). Owners and admins see every read; anyone else sees only their own and their agents’ (an agent is held to its grant, so it sees every read only at hookie:manage). A project hidden from the caller never shows; a caller with hidden projects (or an agent pinned to some) sees no read with no project, and of each read only the items of projects they can see. The list and the export take the same filters, so a file holds exactly the rows on screen.
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/brain/readsconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/brain/reads', 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}/brain/reads"
response = requests.get(url)
print(response.text){
"reads": [
{
"id": "<string>",
"at": "2023-11-07T05:31:56Z",
"project_id": "<string>",
"user_id": "<string>",
"actor_kind": "person",
"credential": "<string>",
"via": "console",
"operation": "knowledge",
"items": [
{
"k": "doc",
"id": "<string>",
"name": "<string>",
"p": "<string>"
}
],
"item_count": 123,
"status": "ok",
"project_name": "<string>",
"user_email": "<string>",
"agent_name": "<string>",
"query": "<string>"
}
],
"total": 123,
"limit": 123,
"offset": 123
}Query Parameters
Response
Newest first. With format=csv the body is a text/csv attachment (brain-reads-.csv) whose items column reads name (id); name (id). With format=json it is an attachment holding {reads}.