Read and edit files and folders, share them, run skip traces and tags on Library files, and manage memory notes through the Goliath developer API
About
The Library is your organization’s file system: the Team space, each person’s
My files, records such as call recordings and contact attachments, and the
memory shelves your AI employees read from. Through the API you can browse and
search it, read and edit text files and spreadsheets in place, move, share and
trash items, run a skip trace or property tag on a Library file, and manage
memory notes.
All operations go through the developer API gateway — one endpoint, called by
operationId. If you haven’t set up a key yet, start with the
Developer API Overview.
The roots the key owner can open: Team, their own My files, and any read-only system space. Each id is the spaceId the other operations take. Uploads and downloads live in listFiles, not here.
One folder (or a space root when folderId is omitted): folders, then files, each with abilities, fileType, size, owner, creator and path. Hidden items are not returned.
Records › Contact files: attachments and voicemails, newest first. Filter by contact, deal, channel, direction or name. Only files whose contact the key owner may open.
A text file’s content (up to 2 MB, truncated when cut), or every visible sheet of a workbook as CSV. Returned as data — never executed or rendered. Its versionId is the baseVersionId for saveSpaceTextFile.
The numbered lines of one text file holding any of terms (case-insensitive), with a few lines of context around each match. Finds something in a long file in one read instead of paging.
A spreadsheet’s cells (.xlsx, CSV, TSV) by A1 range, one sheet at a time, formulas beside their values, 12,000 characters per page (nextStartRow). find keeps only rows containing some words. Reaches any row of a sheet up to 200,000 rows; its versionId is the baseVersionId for editSpaceSheetCells.
Create a folder in a space root or a folder the key owner can edit. A name already in use gets “ (2)“. creationKey makes a retry return the same folder.
Change spreadsheet cells by A1 address, or append rows, as one next version. Every other cell, sheet, format and size is kept and formulas are recomputed. An .xlsx whose save would drop charts, pivots, comments, tables, macros, validation, external links or data connections is refused.
Move up to 200 items, all or nothing. Needs edit access on both sides, and MANAGER when the move changes who can see an item (unless it was already open to the whole team).
Share an item (and everything in it) with an active teammate as VIEWER, EDITOR or MANAGER, or stop sharing with role: null. Needs MANAGER. Never shares outside the organization.
RESTRICTED closes an item to its owner and the people it is shared with; INHERIT reopens it to its folder’s audience, which can widen who sees it. Needs MANAGER.
Permanently delete trashed items — rows, versions and bytes. Items not in the trash are refused.
Running a skip trace or tag on a Library file (READ + WRITE scopes)
A Library spreadsheet of properties can be skip traced or tagged, as the Files
review in the app does. The run is mapped, previewed and confirmed:
startLibraryFileRun → mapLibraryFileRun → previewLibraryFileRun (and
reviseLibraryFileRun as needed) → confirmLibraryFileRun. Each step after
the first takes the run’s fileProcessingTaskId, and every step takes
skipTrace: true for a skip trace, false for a property tag.
Run it. A skip trace adds the phones and emails it finds to the file as a new version; a tag puts the properties on tagName’s list. Starts in the background and returns at once.
Memory notes (READ + WRITE scopes)
Memory is what Goliath’s agents remember: notes on shelves for the key owner,
the team, each AI employee, and each contact. A shelf holds subjects; a subject
holds notes. See also the Memory API.
The shelves the key owner may open — their own, the team’s, AI employees’, and contacts’ (only contacts they may open in the CRM) — with how many subjects each holds.
Queue a dreaming pass now for the key owner’s own shelf, outside the nightly run. Returns false when dreaming is off for the organization; other shelves are not available to keys.
Example
Find a spreadsheet by name, then read its first rows: