---
title: "Upload Object with Auto-Generated Key"
method: POST
path: "/api/storage/buckets/{bucketName}/objects"
tags: ["Client"]
---

# Upload Object with Auto-Generated Key

`POST /api/storage/buckets/{bucketName}/objects`

## Path parameters

- `bucketName` string, required

## Response `201`

Object uploaded successfully with auto-generated key

- StoredFile
  - `bucket` string, required — Name of the bucket containing the object
  - `key` string, required — Unique key identifying the object within the bucket
  - `size` integer, required — Size of the file in bytes
  - `mimeType` string — MIME type of the file
  - `uploadedAt` string, date-time, required — ISO timestamp when the file was uploaded
  - `url` string, required — URL to download the file

## Other responses

- `400` — Invalid bucket name or file
- `404` — Bucket not found

---

[API](https://skmtc.dev/insforge/apis/insforge-authentication-api.md) · [All operations](https://skmtc.dev/insforge/apis/insforge-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/insforge/insforge-authentication-api/revisions/a935bb49f932/schema)
