TheDocumentation Index
Fetch the complete documentation index at: https://docs.xysq.ai/llms.txt
Use this file to discover all available pages before exploring further.
organise namespace gives you programmatic access to the folder tree and file uploads that the Organise dashboard exposes. Folders, renames, moves, deletes, and direct file uploads all run through the same backend the dashboard uses — anything you push through the SDK shows up in app.xysq.ai instantly, and is indexed into memory once extraction finishes.
Uploaded files become part of your memory once extraction completes. Use
client.memory.surface() or client.memory.synthesize() to query their contents — no separate Organise-specific search is needed.list_folders
List every folder in the vault. Returns a flat array — use each folder’sparent_id to reconstruct the tree.
list[Folder] — each with id, name, parent_id, path, is_system, chat_id, owner_kind, owner_id
The system
/Chats/ folder appears in this list with is_system=True. You can’t create folders inside it or upload files directly into it — those slots are managed by Chat.get_folder
Fetch one folder plus its direct subfolders.| Parameter | Type | Default | Description |
|---|---|---|---|
folder_id | str | required | Folder UUID |
tuple[Folder, list[Folder]] — the folder and its child folders. Files inside the folder are not returned by this call.
create_folder
Create a new folder. Omitparent_id to nest directly under the vault root.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | str | required | 1–255 chars; cannot contain / |
parent_id | str | None | Parent folder UUID; None = vault root |
Folder
Names must be unique among siblings. A collision raises XysqError.
rename_folder
Rename a folder. System folders (root,/Chats/) cannot be renamed.
move_folder
Move a folder under a new parent. The folder and everything under it move together./Chats/ folder.
delete_folder
Delete a folder and every subfolder + file inside it. Irreversible.| Parameter | Type | Default | Description |
|---|---|---|---|
folder_id | str | required | Folder UUID |
forget_memories | bool | False | Also remove extracted facts from the recall bank |
int — number of files removed by the cascade.
upload_file
Upload one file into a folder. Two call styles — pick one:| Parameter | Type | Default | Description |
|---|---|---|---|
path | str | PathLike | None | Read bytes from disk. Mutually exclusive with content |
content | bytes | str | None | In-memory payload. Requires filename + mime_type |
filename | str | None | Display name. Defaults to the file’s basename when using path |
mime_type | str | None | MIME type. Inferred from extension when using path |
folder_id | str | None | Destination folder. None = vault root |
OrganiseFile — asset_id, filename (auto-renamed on collision), folder_id, mime_type, size_bytes, extraction_status
Limits
| Limit | |
|---|---|
| File size | 10 MB |
| MIME types | text/markdown, text/plain, application/pdf, application/json, text/csv, image/* |
| Filename collisions | Auto-renamed with (N) suffix |
ValueError before any bytes leave the process.
file_status
Poll an uploaded file’s extraction status.FileStatus — asset_id, extraction_status, error_msg
wait_for_file
Block until extraction finishes or times out.| Parameter | Type | Default | Description |
|---|---|---|---|
asset_id | str | required | File to poll |
timeout | float | 60.0 | Maximum seconds to wait |
interval | float | 1.0 | Poll interval in seconds |
wait_for_file() in pipelines or tests where you need the file’s content searchable before continuing.
Team Organise
Wrap the client inteam(team_id) to operate on a team’s Organise vault instead of your personal one. Permissions follow your team role — ro members can list and download, rw and above can upload, rename, move, and delete.
Full example
Related
Memory
Uploaded files surface here once extraction completes
Organise feature
Overview of the folder tree, the dashboard, and the
/Chats/ system folder