Source Code Bundles
Gets information about one file stored in B2.This will return an error if called on a non-existent file ID or if called on an unfinished large file.
Request HTTP Headers
The account authorization token returned by
Request HTTP Message Body Parameters
Response HTTP Status 200
File info returned as a JSON response:
The name of this file, which can be used with
Your account ID.
The Sha1 hash of the contents of the file stored in B2.
The bucket that the file is in.
The number of bytes stored in the file.
The MIME type of the file.
The custom information that was uploaded with the file.
This is a JSON object, holding the name/value pairs
that were uploaded with the file. There are two recommended
names inside this JSON object (but feel free to add more):
One of "upload", or "hide".
"upload" means a file that was uploaded to B2 Cloud Storage.
"hide" means a file version marking the file as hidden, so that it will not
show up in
This is a UTC time when this file was uploaded. It is a base 10 number of milliseconds since midnight, January 1, 1970 UTC. This fits in a 64 bit integer such as the type "long" in the programming language Java. It is intended to be compatible with Java's time long. For example, it can be passed directly into the java call Date.setTime(long time).
If possible the server will return a JSON error structure. Errors include: