List facts
const url = 'https://api.asklucy.eu/v1/memory/facts?limit=25&scope=user';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/facts?limit=25&scope=user' \ --header 'Authorization: Bearer <token>'Live facts you can see, newest first. With q, one page of the best
matches (no next_cursor). Facts that were replaced are left out;
your own are in exportMemory.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The next_cursor of the previous page.
Who a piece of memory is for: user (only you, and Lucy when she
works for you), group:<groupId> (the members of a group from the
identity provider) or org (everyone in the organization).
Only this scope. Without it, everything you can see.
Only the facts about this entity.
Search by meaning, words and names, in any language.
Responses
Section titled “Responses”OK
object
One statement about an entity, with where it comes from. Facts are never changed; a correction replaces them.
object
object
Who a piece of memory is for: user (only you, and Lucy when she
works for you), group:<groupId> (the members of a group from the
identity provider) or org (everyone in the organization).
Since when it holds, when known.
Until when it held, when known.
When Lucy learned it.
When it was replaced or found wrong; null while it is live.
The fact that replaced it.
Where it comes from. The conversation, message and file are given only to the person they belong to (null for others).
object
The person who said it, or for whom Lucy was working.
Example
{ "data": [ { "id": "fact_2Rk8Vp", "entity": { "id": "ent_5Tq9Bm", "type": "company" }, "text": "Custody fees are billed quarterly, in arrears.", "scope": "user", "source": { "kind": "said_by_person" } } ]}The request is invalid; errors lists what’s wrong.
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.
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.