My memory at a glance
const url = 'https://api.asklucy.eu/v1/memory';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.asklucy.eu/v1/memory \ --header 'Authorization: Bearer <token>'Whether memory is on for you (and which switch turned it off if not), and what it holds.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
The contract includes Lucy Memory (entitlements.memory).
The organization hasn’t turned memory off (settings memory_enabled isn’t false).
You haven’t turned memory off (preference memory isn’t false).
All three hold, so Lucy reads and writes memory in your conversations.
object
Live facts in your own scope.
Entities in your own scope.
Active processes in your own scope.
Active processes shared with you (the organization’s and your groups’).
For admins, the proposals waiting for review; null for others.
Example generated
{ "entitled": true, "org_enabled": true, "personal_enabled": true, "enabled": true, "counts": { "facts": 1, "entities": 1, "own_processes": 1, "org_processes": 1, "pending_proposals": 1 }}Missing, expired or invalid token.
RFC 9457 problem details.
object
For quota-exceeded, the window that is used up.
object
Null for a rolling window that hasn’t started.
organization when the organization’s budget is closer to running out than the member’s own limit.
Field-level problems (400 only).
object
JSON pointer into the request body.
Example
{ "type": "https://docs.asklucy.eu/errors/answer-in-progress", "quota": { "window": "five_hours", "limited_by": "personal", "request": { "status": "pending" } }}Headers
Section titled “Headers”Unique per request; quote it to support.
The token is valid but lacks the role this needs.
RFC 9457 problem details.
object
For quota-exceeded, the window that is used up.
object
Null for a rolling window that hasn’t started.
organization when the organization’s budget is closer to running out than the member’s own limit.
Field-level problems (400 only).
object
JSON pointer into the request body.
Example
{ "type": "https://docs.asklucy.eu/errors/answer-in-progress", "quota": { "window": "five_hours", "limited_by": "personal", "request": { "status": "pending" } }}Headers
Section titled “Headers”Unique per request; quote it to support.