Skip to main content
GET /openapi/memorylake/api/v1/drives/items/{item_id}
Returns metadata for a single Library item. Use this to inspect a file before importing it into a project, to resolve MY_SPACE into a concrete ID, or to check whether an item exists.

Path Parameters

item_id
string
required
Item ID. Pass MY_SPACE to look up your workspace root without needing its concrete ID.
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v1/drives/items/MY_SPACE' \
  -H 'Authorization: Bearer sk_xxxxxx'

Response

data
object
{
  "success": true,
  "data": {
    "item": {
      "item_id": "sc-5c6bf0f82d624a20a6fa4696997bdd46:7d8cf1e93f634b31b5",
      "name": "report.pdf",
      "type": "file",
      "size": 10485760,
      "etag": "d41d8cd98f00b204e9800998ecf8427e",
      "parent_item_id": "sc-5c6bf0f82d624a20a6fa4696997bdd46:root",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T10:30:00Z",
      "x_attrs": {}
    }
  }
}