retrieveFile

Fetches the metadata of a single stored file.

Example:

val file = client.retrieveFile("file-api-abc123")
println("${file.filename}: ${file.bytes} bytes")

Return

The stored FileObject

Parameters

fileId

Identifier of the file, of the form file-api-...

Throws

if the API returns a non-2xx status, including when no such file exists