Hanzo
OpenapiS3

Get a URL to upload one object directly

Returns a short-lived presigned PUT URL, with the method, the cleaned key and the seconds until it expires.

POST /v1/s3/buckets/{bucket}/objects

Addresshttps://api.hanzo.ai/v1/s3/buckets/{bucket}/objects
MethodPOST
Operationpost_s3_buckets_by_bucket_objects
AuthAuthorization: Bearer $HANZO_API_KEY

Returns a short-lived presigned PUT URL, with the method, the cleaned key and the seconds until it expires. The client uploads to that URL DIRECTLY — the bytes never pass through this API, and the storage credential never leaves the server.

The URL is signed against the public storage host and scoped to exactly one bucket and key, and it expires five minutes after it is issued. The key is path-cleaned before signing, so a traversal cannot escape the bucket. A deployment with no public storage endpoint answers 503, because there is no host to sign a browser-followable URL against.

A validated principal is required, and every bucket and key is resolved inside the caller's own org: physical bucket names are derived from the org, so a tenant cannot name another's storage. The operation is billed per call — the balance is checked BEFORE anything is touched, so an unfunded org is refused with nothing done, and the debit happens only after the work succeeds. Object storage that is not configured answers 503 under this subsystem's own name rather than falling through to another.

Request

1 field.

FieldInTypeRequiredDescription
bucketpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo s3 buckets objects create <bucket>

S3 API · All Hanzo APIs · Interactive reference

How is this guide?

On this page