> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drime.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Get File Entry

> Get details for a specific file or folder

## Overview

Returns detailed information about a specific file or folder entry.

## Path Parameters

<ParamField path="entryId" type="integer" required>
  The file entry ID
</ParamField>

## Query Parameters

<ParamField query="workspaceId" type="integer">
  Workspace context
</ParamField>

<ParamField query="thumbnail" type="boolean">
  When true, include thumbnail information if available
</ParamField>

## Response

<ResponseField name="fileEntry" type="object">
  The file entry object with all details

  <Expandable title="FileEntry properties">
    <ResponseField name="id" type="integer">
      Unique entry identifier
    </ResponseField>

    <ResponseField name="name" type="string">
      File or folder name
    </ResponseField>

    <ResponseField name="type" type="string">
      Entry type: `folder`, `image`, `file`, `text`, `audio`, `video`, `pdf`
    </ResponseField>

    <ResponseField name="hash" type="string">
      Unique hash for the entry
    </ResponseField>

    <ResponseField name="file_size" type="integer">
      File size in bytes (0 for folders)
    </ResponseField>

    <ResponseField name="mime" type="string">
      MIME type of the file
    </ResponseField>

    <ResponseField name="extension" type="string">
      File extension
    </ResponseField>

    <ResponseField name="parent_id" type="integer">
      Parent folder ID (null for root)
    </ResponseField>

    <ResponseField name="workspace_id" type="integer">
      Workspace ID
    </ResponseField>

    <ResponseField name="url" type="string">
      URL for previewing the file
    </ResponseField>

    <ResponseField name="thumbnail_url" type="string">
      Thumbnail URL (for images/videos)
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="status" type="string">
  Request status (`success`)
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://app.drime.cloud/api/v1/file-entries/485529678 \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const entryId = 485529678;

  const response = await fetch(
    `https://app.drime.cloud/api/v1/file-entries/${entryId}`,
    {
      headers: {
        'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
      }
    }
  );

  const { fileEntry } = await response.json();
  ```

  ```python Python theme={null}
  import requests

  entry_id = 485529678

  response = requests.get(
      f'https://app.drime.cloud/api/v1/file-entries/{entry_id}',
      headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
  )

  file_entry = response.json()['fileEntry']
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "status": "success",
    "fileEntry": {
      "id": 485529678,
      "name": "photo.jpg",
      "type": "image",
      "hash": "NDg1NTI5Njc4fA",
      "file_size": 2048576,
      "mime": "image/jpeg",
      "extension": "jpg",
      "parent_id": null,
      "workspace_id": 0,
      "url": "api/v1/file-entries/485529678",
      "thumbnail_url": "https://app.drime.cloud/storage/thumbnails/abc123.jpg",
      "created_at": "2024-01-14T08:20:00.000000Z",
      "updated_at": "2024-01-14T08:20:00.000000Z",
      "users": [
        {
          "id": 15843,
          "email": "user@example.com",
          "owns_entry": true
        }
      ]
    }
  }
  ```
</ResponseExample>
