retrieve File
Fetches the metadata of a single stored file.
Example:
val file = client.retrieveFile("file-api-abc123")
println("${file.filename}: ${file.bytes} bytes")Content copied to clipboard
Return
The stored FileObject
Parameters
file Id
Identifier of the file, of the form file-api-...
Throws
if fileId is blank
if the API returns a non-2xx status, including when no such file exists