v1

latestOpenAPI 3.0.02026-07-26103425558.9 KB
File

Upload a file

Upload a file.

post/v2/files

Response

File uploaded successfully

idstring

File ID

createdAtstring date-time

The time the file was uploaded

fileNamestring

The name of the uploaded file

sizeinteger

The size of the uploaded file in bytes

mimeTypestring

The MIME type of the uploaded file

Example response

{
  "id": "file_zEFpbPhk71NaQfEVMR544",
  "createdAt": "2023-10-01T12:00:00Z",
  "fileName": "document.pdf",
  "size": 204800,
  "mimeType": "application/pdf"
}