ClickCease

Leni HTTP API

Memory

List, create, and update memory in the API-key owner’s authorized user or organization context.

POST/users/get-user-memory

JSON body is optional. modelType and modelId select an authorized scope; an empty {} uses defaults.

{ "modelType": "leniq-pro", "modelId": null }

POST/users/add-to-memory

FieldRequirementBehavior
memoryTypeRequiredNon-empty memory store, normally user_memory or organisation_memory.
noteTitle / noteContextOptionalReadable title and note content.
modelType / modelIdOptionalAuthorized model scope.
folderId / folderNameOptionalFolder placement metadata.
files / filesBase64OptionalShared base64 file contract; multipart parts named files are supported.
{
  "memoryType": "user_memory",
  "modelType": "leniq-pro",
  "noteTitle": "Building hours",
  "noteContext": "Lobby desk staffed 9–5 weekdays."
}

POST/users/update-memory

FieldRequirementBehavior
memoryRequiredExisting memory object, including its owned identifier and changed fields.
memoryTypeRequiredNon-empty store matching the record.
modelTypeRequired with modelIdAuthorized model type for scoped organization memory.
modelIdOptionalAuthorized custom model scope.
files / filesBase64OptionalNew attachments using the shared file contract.
{
  "memoryType": "user_memory",
  "memory": {
    "id": "<memory-id>",
    "noteTitle": "Updated title",
    "noteContext": "Updated body"
  },
  "modelType": "leniq-pro"
}