Create memory for an Agent
Create memory for an Agent. The request enforces Agent roles, ownership, workspace boundaries, and lifecycle state.
curl --request POST \
--url https://api.revoengine.com/api/v1/agents/{agentId}/memory \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "digest",
"name": "Billing source",
"summary": "The billing reconciliation workspace uses Stripe as the payment source of truth."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
kind: 'digest',
name: 'Billing source',
summary: 'The billing reconciliation workspace uses Stripe as the payment source of truth.'
})
};
fetch('https://api.revoengine.com/api/v1/agents/{agentId}/memory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}/memory"
payload = {
"kind": "digest",
"name": "Billing source",
"summary": "The billing reconciliation workspace uses Stripe as the payment source of truth."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
Durable memory kind.
digest, preference, fact, episode "digest"
Short stable memory name for labels and ref tokens.
1 - 64"Billing source"
Canonical Markdown memory digest. It is durable learned context, not transcript archival.
1"The billing reconciliation workspace uses Stripe as the payment source of truth."
Memory owner. USER is private, AGENT belongs to one agent, and WORKSPACE is bound to an attached workspace root.
USER, AGENT, WORKSPACE "AGENT"
Owner id. Required for USER, AGENT, and WORKSPACE memory.
"11111111-1111-4111-8111-111111111111"
Explicit additional exact source or resource tokens that support the memory. The API also extracts REFTYPE/id [blocked] tokens from summary.
[
"[COMPONENTS/11111111-1111-4111-8111-111111111111](InvoiceSync)"
]
Compact topical tags used for recall.
["billing", "stripe"]
Response
curl --request POST \
--url https://api.revoengine.com/api/v1/agents/{agentId}/memory \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "digest",
"name": "Billing source",
"summary": "The billing reconciliation workspace uses Stripe as the payment source of truth."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
kind: 'digest',
name: 'Billing source',
summary: 'The billing reconciliation workspace uses Stripe as the payment source of truth.'
})
};
fetch('https://api.revoengine.com/api/v1/agents/{agentId}/memory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}/memory"
payload = {
"kind": "digest",
"name": "Billing source",
"summary": "The billing reconciliation workspace uses Stripe as the payment source of truth."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
