Skip to main content
GET
/
v0
/
files
/
{id}
curl https://api.getagentdrive.com/v0/files/file_xyz789 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "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"
}

Path Parameters

id
string
required
The unique identifier of the file.
curl https://api.getagentdrive.com/v0/files/file_xyz789 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "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"
}

Response

id
string
Unique identifier for the file.
drive_id
string
The ID of the drive the file belongs to.
path
string
The full path of the file within the drive.
filename
string
The name of the file.
mime_type
string
The MIME type of the file.
size
integer
The size of the file in bytes.
content_hash
string
A SHA-256 hash of the file content.
content_preview
string
A text preview of the file content, if available.
tags
string[]
Tags associated with the file.
metadata
object
Custom metadata attached to the file.
created_at
string
ISO 8601 timestamp of when the file was created.
updated_at
string
ISO 8601 timestamp of when the file was last updated.