Skip to main content
GET
/
drive
/
file-entries
curl "https://app.drime.cloud/api/v1/drive/file-entries?workspaceId=0&perPage=50" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "data": [
    {
      "id": 485529677,
      "name": "My Documents",
      "type": "folder",
      "hash": "NDg1NTI5Njc3fA",
      "file_size": 0,
      "parent_id": null,
      "workspace_id": 0,
      "created_at": "2024-01-15T10:30:00.000000Z",
      "updated_at": "2024-01-15T10:30:00.000000Z"
    },
    {
      "id": 485529678,
      "name": "photo.jpg",
      "type": "image",
      "hash": "NDg1NTI5Njc4fA",
      "file_size": 2048576,
      "mime": "image/jpeg",
      "extension": "jpg",
      "parent_id": null,
      "workspace_id": 0,
      "created_at": "2024-01-14T08:20:00.000000Z",
      "updated_at": "2024-01-14T08:20:00.000000Z"
    }
  ],
  "folder": null,
  "current_page": 1,
  "last_page": 1,
  "per_page": 50,
  "total": 2,
  "from": 1,
  "to": 2
}

Overview

Returns a paginated list of file entries (files and folders) that the user has access to. Supports filtering, searching, and sorting.

Query Parameters

workspaceId
integer
default:"0"
Workspace ID. Use 0 for personal workspace.
perPage
integer
default:"50"
Number of entries per page
page
integer
default:"1"
Page number (1-indexed)
parentIds
array
Filter to entries that are children of specified folder IDs
folderId
string
Display files in specified folder (by hash)
query
string
Search query to filter entry names
type
string
Filter by file type: folder, image, text, audio, video, pdf
deletedOnly
boolean
Return only trashed entries
starredOnly
boolean
Return only starred entries
recentOnly
boolean
Return only recently accessed entries
sharedOnly
boolean
Return only entries shared with you
orderBy
string
default:"updated_at"
Sort field: updated_at, created_at, name, file_size
orderDir
string
default:"desc"
Sort direction: asc or desc

Response

data
array
Array of file entry objects
folder
object
Current folder info (null if listing root)
current_page
integer
Current page number
last_page
integer
Total number of pages
total
integer
Total number of entries
curl "https://app.drime.cloud/api/v1/drive/file-entries?workspaceId=0&perPage=50" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "data": [
    {
      "id": 485529677,
      "name": "My Documents",
      "type": "folder",
      "hash": "NDg1NTI5Njc3fA",
      "file_size": 0,
      "parent_id": null,
      "workspace_id": 0,
      "created_at": "2024-01-15T10:30:00.000000Z",
      "updated_at": "2024-01-15T10:30:00.000000Z"
    },
    {
      "id": 485529678,
      "name": "photo.jpg",
      "type": "image",
      "hash": "NDg1NTI5Njc4fA",
      "file_size": 2048576,
      "mime": "image/jpeg",
      "extension": "jpg",
      "parent_id": null,
      "workspace_id": 0,
      "created_at": "2024-01-14T08:20:00.000000Z",
      "updated_at": "2024-01-14T08:20:00.000000Z"
    }
  ],
  "folder": null,
  "current_page": 1,
  "last_page": 1,
  "per_page": 50,
  "total": 2,
  "from": 1,
  "to": 2
}