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

# Get File

> Retrieve metadata for a specific file.

## Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the file.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.getagentdrive.com/v0/files/file_xyz789 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "file_xyz789",
    "drive_id": "drv_abc123",
    "path": "documents/report.pdf",
    "filename": "report.pdf",
    "mime_type": "application/pdf",
    "size": 24576,
    "content_hash": "sha256:abcdef1234567890",
    "content_preview": null,
    "tags": ["report", "2026"],
    "metadata": { "author": "Jane Doe" },
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-01-15T10:30:00Z"
  }
  ```
</ResponseExample>

## Response

<ResponseField name="id" type="string">
  Unique identifier for the file.
</ResponseField>

<ResponseField name="drive_id" type="string">
  The ID of the drive the file belongs to.
</ResponseField>

<ResponseField name="path" type="string">
  The full path of the file within the drive.
</ResponseField>

<ResponseField name="filename" type="string">
  The name of the file.
</ResponseField>

<ResponseField name="mime_type" type="string">
  The MIME type of the file.
</ResponseField>

<ResponseField name="size" type="integer">
  The size of the file in bytes.
</ResponseField>

<ResponseField name="content_hash" type="string">
  A SHA-256 hash of the file content.
</ResponseField>

<ResponseField name="content_preview" type="string">
  A text preview of the file content, if available.
</ResponseField>

<ResponseField name="tags" type="string[]">
  Tags associated with the file.
</ResponseField>

<ResponseField name="metadata" type="object">
  Custom metadata attached to the file.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 timestamp of when the file was created.
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp of when the file was last updated.
</ResponseField>
