curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/memories/extract \
--header 'Content-Type: application/json' \
--data '
{
"transcript": "<string>",
"visibility": "private"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({transcript: '<string>', visibility: 'private'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/memories/extract', 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}/memories/extract"
payload = {
"transcript": "<string>",
"visibility": "private"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"mode": "review",
"memories": [
{}
],
"dropped": 123,
"redacted": 123,
"transcript_chars_read": 123
}{
"error": "<string>",
"code": "storage_rule_violation",
"violations": [
{
"rule": "<string>",
"message": "<string>",
"limit": "<unknown>",
"actual": "<unknown>"
}
],
"project_id": "<string>",
"refused_by_rules": [
{
"title": "<string>",
"rule": "<string>",
"message": "<string>"
}
]
}Capture memories from an agent session
Automatic memory capture (#682). Send the transcript of a working session (at most 300,000 characters); Workers AI reads its last 20,000 characters and proposes up to 5 memories and decisions worth keeping, skipping what the project already knows. Credential-shaped text is redacted before the model sees it, the transcript is never stored (the AI call log records only its size), and a proposal holding a credential is dropped. The project’s memory_extraction setting decides what happens: auto (the default) saves them as ordinary memories; review saves them as the caller’s proposals with status pending, seen only by the caller until they approve each one; off answers 409 memory_extraction_off. Requires write access in the project. Each call counts against the plan’s daily allowance (Free 10, Starter 40, Pro 100, Team 300, Ultimate 1,000 per UTC day): 429 memory_extraction_limit_reached with limit and upgrade_url once used. Model tokens count against the monthly AI allowance (429 ai_quota_exceeded). 503 when the model is busy; that call is not charged.
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/memories/extract \
--header 'Content-Type: application/json' \
--data '
{
"transcript": "<string>",
"visibility": "private"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({transcript: '<string>', visibility: 'private'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/memories/extract', 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}/memories/extract"
payload = {
"transcript": "<string>",
"visibility": "private"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"mode": "review",
"memories": [
{}
],
"dropped": 123,
"redacted": 123,
"transcript_chars_read": 123
}{
"error": "<string>",
"code": "storage_rule_violation",
"violations": [
{
"rule": "<string>",
"message": "<string>",
"limit": "<unknown>",
"actual": "<unknown>"
}
],
"project_id": "<string>",
"refused_by_rules": [
{
"title": "<string>",
"rule": "<string>",
"message": "<string>"
}
]
}Path Parameters
Body
Response
What was proposed (or, in auto mode, saved).