Skip to main content
GET /openapi/memorylake/api/v1/projects/{id}/documents/{documentId}/download
Downloads the binary content of a project document. The response is either a 303 redirect to the storage download URL, or streamed binary content.

Path Parameters

id
string
required
Project ID
documentId
string
required
Project document ID
curl -L -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v1/projects/proj-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6/documents/doc-1234567890abcdef/download' \
  -H 'Authorization: Bearer sk_xxxxxx' \
  -o downloaded_file.pdf

Response

Returns either a 303 redirect to the storage download URL, or 200 with streamed binary content (application/octet-stream).
HTTP/1.1 303 See Other
Location: https://storage.example.com/download/document.pdf?signature=...