files

Upload file

Upload a new file.

Args: file: The file to upload.

Returns: FileResponse: The response containing the details of the uploaded file.

post/v1/files

Request

  • Base URL
    https://api.mixedbread.com
  • URL
    https://api.mixedbread.com/v1/files
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

The file to upload

Response

The uploaded file details

idstring required

Unique identifier for the file

filenamestring required

Name of the file including extension

bytesinteger required

Size of the file in bytes

mime_typestring required

MIME type of the file

versioninteger required

Version of the file

created_atstring date-time required

Timestamp when the file was created

updated_atstring date-time required

Timestamp when the file was last updated

Example response

{
  "id": "file_abc123",
  "filename": "document.pdf",
  "bytes": 1024,
  "mime_type": "application/pdf",
  "version": 1
}

Changes

No recorded changes to this operation across all 44 revisions of this API.