GET /openapi/memorylake/api/v3/workspaces/{workspaceId}/projects/{projectId}/memories/documents/{documentId}
Returns metadata for a single project document. Use this to check whether a recently imported document has finished processing, inspect its token usage, find the Library file it was imported from (for example, to download the original file), or confirm it exists before performing other operations.
Permission required:project:doc_read
Path Parameters
string
required
Workspace ID that owns the project.
string
required
Project the document belongs to.
string
required
Document ID to retrieve.
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-a1b2c3d4e5f6/projects/proj-7g8h9i0j1k2l/memories/documents/doc-3m4n5o6p7q8r' \ -H 'Authorization: Bearer sk_xxxxxx'
Response
object
Show Document detail
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.