Auth — mem.auth

auth.signup(email: str, password: str, *, name: str = "", workspace: str = "") -> dict
auth.login(email: str, password: str) -> dict
auth.me(token: str) -> dict
s = mem.auth.signup("a@b.com", "password123", name="A")
token = s["token"]
assert mem.auth.login("a@b.com", "password123")["token"]
assert mem.auth.me(token)["email"] == "a@b.com"
signup and login return {"token", "user"}; me returns the verified claims.

Browse — mem.browse

Paginated reads of org content:
browse.sessions(offset: int = 0, limit: int = 10) -> dict
browse.claims(offset: int = 0, limit: int = 10) -> dict

Workspaces — mem.workspaces

workspaces.list() -> dict
workspaces.create(org_id: str, name: str) -> dict

Admin — mem.admin (founder-only)

admin.me() -> dict          # {"is_founder": bool}
admin.overview() -> dict    # platform overview
admin.workspaces() -> dict  # all workspaces
admin.users() -> dict       # all users
admin.health() -> dict      # full component health
Admin calls require an account with founder access; everyone else gets 403 (except admin.me(), which simply returns {"is_founder": false}).
The SDK’s admin namespace is read-only. Founder write-actions — change a workspace’s plan, add a user, view a workspace’s activity — are available on the REST API; see Admin.

Health & status

mem.health()   # service health
mem.status()   # {"status": "operational" | "degraded" | "down", ...}

Export

export_jsonl(**filters: Any) -> list[dict[str, Any]]
Export the org’s data as JSONL records (optional filters such as session_id, since, until).

Full API reference

Every endpoint behind these methods.