Skip to main content
POST
/
v2
/
files
Upload a file
curl --request POST \
  --url https://production.hifibridge.com/v2/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
{
  "id": "file_zEFpbPhk71NaQfEVMR544",
  "createdAt": "2023-10-01T12:00:00Z",
  "fileName": "document.pdf",
  "size": 204800,
  "mimeType": "application/pdf"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

Response

File uploaded successfully

id
string

File ID

createdAt
string<date-time>

The time the file was uploaded

fileName
string

The name of the uploaded file

size
integer

The size of the uploaded file in bytes

mimeType
string

The MIME type of the uploaded file

I