v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Client

Upload Object with Auto-Generated Key

post/api/storage/buckets/{bucketName}/objects

Path parameters

bucketNamestring required

Response

Object uploaded successfully with auto-generated key

bucketstring required

Name of the bucket containing the object

keystring required

Unique key identifying the object within the bucket

sizeinteger required

Size of the file in bytes

mimeTypestring

MIME type of the file

uploadedAtstring date-time required

ISO timestamp when the file was uploaded

urlstring required

URL to download the file

Example response

{
  "bucket": "avatars",
  "key": "user123.jpg",
  "size": 102400,
  "mimeType": "image/jpeg",
  "uploadedAt": "2024-01-15T10:30:00Z",
  "url": "/api/storage/buckets/avatars/objects/user123.jpg"
}