v5

latestOpenAPI 3.1.02026-08-04166362486.5 KB
files

Get file details

Retrieve details of a specific file by its ID.

Args: file_id: The ID of the file to retrieve.

Returns: FileResponse: The response containing the file details.

get/v1/files/{file_id}

Path parameters

file_idstring uuid required

The ID of the file to retrieve

The ID of the file to retrieve

Response

The details of the requested file

idstring required

Unique identifier for the file

filenamestring required

Name of the file including extension

bytesinteger required

Size of the file in bytes

mime_typestring required

MIME type of the file

versioninteger required

Version of the file

created_atstring date-time required

Timestamp when the file was created

updated_atstring date-time required

Timestamp when the file was last updated

Example response

{
  "id": "file_abc123",
  "filename": "document.pdf",
  "bytes": 1024,
  "mime_type": "application/pdf",
  "version": 1
}