My preferences
const url = 'https://api.asklucy.eu/v1/me/preferences';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/me/preferences \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
How you’d like Lucy to answer you (e.g. “Answer in French, keep it short”). Added after the organization’s instructions, which take precedence.
Lucy Memory for you. Null (the default) means on whenever the organization has it on; false turns it off: Lucy neither reads nor writes memory in your conversations. You can still see, export and delete what is stored.
How long Lucy’s sandbox keeps what it saved: a paused workspace (the files of a conversation after a few idle minutes) and published pages. Days; a field that is null or absent is inherited. The organization’s value is the default and the ceiling: a person or a conversation can only choose a shorter time. The effective value is the shortest that applies, within the platform’s maximum.
object
0 keeps no paused workspace (an idle sandbox is deleted with its files).
What you may choose between. max is your organization’s value (the ceiling); default is what applies if you choose nothing.
object
object
object
The organization’s rules for Lucy, as its admins set them (instructions of PATCH /org). Lucy follows
them in every answer, before your own instructions. Null when there are none.
Example generated
{ "instructions": "example", "memory": true, "sandbox_retention": { "snapshot_days": 1, "artifact_days": 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.