@cpod/sdk - v0.2.7
    Preparing search index...

    Function getFileById

    • Get file information by ID

      Parameters

      • fileId: string

        The unique identifier of the file

      Returns Promise<FileInfo>

      File information including name, size, type, and metadata

      401 - Not authenticated

      404 - File not found

      import { getFileById } from "@cpod/sdk";

      const file = await getFileById("file-123");
      console.log(`${file.name} (${file.size} bytes)`);