Skip to main content
Fetch File
Returns a File: the same shape Upload File and Upload Image return, and the same as a File embedded in any record. For a processed image it includes the image data and every variant. A file comes back only to a viewer who can see it: a file that belongs to a record goes to whoever can see that record, and a file that belongs to nothing to any signed-in user (see who can see a file). A file the viewer can’t see answers exactly like a missing one, 404 storage/file-not-found. Requires an authenticated user, or a service key. A service key sees what the user named in actingUserId sees; naming nobody, it sees files that belong to nothing and those anyone can see. Rate limit: 100 requests per 5 minutes.

Path Parameters

string
required
The UUID of the file to retrieve.

Query Parameters

string
Service key only: the user this read acts as. The answer is exactly what that user’s own access token gets. A user token always acts as its own user and must not send it (400 storage/acting-user-not-allowed).

Response

string
The file’s UUID.
string | null
The file’s owner: the uploader, or the user a service key named in actingUserId. null for an app-owned file.
string | null
The entity the file belongs to, or null.
string | null
The event the file belongs to, or null.
string | null
The comment the file belongs to, or null.
string | null
The chat message the file belongs to, or null.
string | null
The space the file is associated with, or null. It is set on a space’s own avatar and banner; older files (an entity’s or event’s files, or a POST /storage upload associated with a space) may also carry a space.
string
One of: image, video, document, other, from the MIME type.
string
Signed link to the original file. It stops working at linksExpireAt.
number
Size in bytes of the stored original. For a processed image that is the original as stored, after it is shrunk to its originalMaxSize.
string
The stored file’s type. For a file stored as uploaded, the uploaded type; for a processed image, image/<format> of the stored original (for example image/webp).
number
Display order among the files of the record it belongs to. 0 for a file uploaded through the storage endpoints.
object
Metadata stored at upload time: the uploader’s own keys (on POST /storage and POST /storage/images), plus the server’s originalFilename and, on an image, originalFormat and originalDimensions (the uploaded image’s own format and size, before processing). Older files may carry other keys.
object | null
The image data of a processed image; null for a file stored as uploaded (an image sent through Upload File or in a files list included).
When every link on this File stops working (ISO 8601), 24 to 48 hours after the read. Get fresh ones from Refresh File Links, or by reading the file or its record again.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp.

Error Responses

Returned when fileId isn’t a valid UUID. Checked before sign-in, permissions and the endpoint’s other checks.
Returned for a query parameter this endpoint doesn’t take, or an actingUserId that isn’t a UUID.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
Returned when no file has this id, or the viewer can’t see it.