Get file information by ID
The unique identifier of the file
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)`); Copy
import { getFileById } from "@cpod/sdk";const file = await getFileById("file-123");console.log(`${file.name} (${file.size} bytes)`);
Get file information by ID