GET /openapi/memorylake/api/v3/workspaces/{workspaceId}/projects/{projectId}/memories/documents
Returns documents that have been imported into a project. Uses cursor pagination: if continuation_token is returned, pass it back on the next request to fetch the next page. When the token is absent from the response, you have reached the end.
Permission required:project:doc_read
Path Parameters
string
required
Workspace ID that owns the project.
string
required
Project to list documents from.
Query Parameters
integer
default:"20"
Number of documents per page. Defaults to 20 when omitted.
string
Token returned by the previous call. Omit on the first request.
string
Fuzzy match on document name.
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-a1b2c3d4e5f6/projects/proj-7g8h9i0j1k2l/memories/documents?page_size=20' \ -H 'Authorization: Bearer sk_xxxxxx'
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-a1b2c3d4e5f6/projects/proj-7g8h9i0j1k2l/memories/documents?page_size=20&continuation_token=eyJsYXN0SWQiOiJkb2MtOW4wbTFsMms' \ -H 'Authorization: Bearer sk_xxxxxx'
Response
object
Show Paginated document list
array
Array of project documents.
Show ProjectDocumentItem
string
Document ID.
string
File name of the document.
string
Processing status: pending, running, okay, or error.
object|null
Error details when status is error. null otherwise.
object
Token usage for processing.
Show Usage
integer
Number of tokens consumed to process this document.
string
Document type: drive_file.
object
Library item this document was imported from. To download the original file, call Download Document, or pass drive_item.id to Download Item.
Show Library item
string
Library item ID.
string
Resource URI of the Library item (drive://…), usable wherever a drive:// reference is accepted. Omitted when the item’s location cannot be resolved.
string
ISO 8601 timestamp when the document was imported.
string
Token for the next page. Absent or null when this is the last page.