Get Item
Retrieve metadata for a file or folder.
GET /drives/items/{itemId}
Parameters
Response
Request success indicator
Item object with name, type, size, modified date, parent ID
curl -X GET 'https://app.memorylake.ai/api/memorylake/api/v1/drives/items/item_123' \
-H 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"id": "item_123",
"name": "document.pdf",
"type": "file",
"size": 1024000,
"modified_at": "2024-01-15T10:00:00Z",
"parent_id": "item_parent_456"
}
}
List Children
List contents of a folder.
GET /drives/items/{itemId}/children
Returns array of child items with pagination support.
Create Folder
Create a new folder.
POST /drives/items/{parentId}/children
Body
Rename Item
PATCH /drives/items/{itemId}/name
Move Item
PATCH /drives/items/{itemId}/parent
Delete Item
DELETE /drives/items/{itemId}
Download File
GET /drives/items/{itemId}/binary
Returns file content as binary stream.
PUT /drives/items/{itemId}/xattrs
Update extended attributes and comments.
Next Steps