Get File
Retrieve details of a specific file by its ID.
GET
ApiKeyAuthheader
AuthorizationBearer <token>Api key to access Mixedbreads API
file_id*File IdThe ID of the file to retrieve
Format
uuidThe details of the requested file
application/json- response
A model representing a file object in the system.
This model contains metadata about files stored in the system, including identifiers, size information, and timestamps.
id*IdUnique identifier for the file
filename*FilenameName of the file including extension
Length
1 <= lengthbytes*BytesSize of the file in bytes
Range
0 < valuemime_type*Mime TypeMIME type of the file
Match
^[\w\.\-\+]+/[\w\.\-\+]+(\.\w+)*$version*VersionVersion of the file
Range
1 <= valuecreated_at*Created AtTimestamp when the file was created
Format
date-timeupdated_at*Updated AtTimestamp when the file was last updated
Format
date-timefrom mixedbread import Mixedbread
mxbai = Mixedbread(api_key="YOUR_API_KEY")
response = mxbai.files.retrieve(file_id="f47ac10b-58cc-4372-a567-0e02b2c3d479")
print(response)Example Response
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"filename": "document.pdf",
"bytes": 1048576,
"mime_type": "application/pdf",
"version": 1,
"created_at": "2025-01-15T10:00:00.000Z",
"updated_at": "2025-01-15T10:00:00.000Z",
"object": "file"
}