Skip to main content
POST
storage.upload.create

Authorizations

Authorization
string
header
required

API key: sk_live_…

Headers

Idempotency-Key
string
required

Required: this capability has an external effect.

Maximum string length: 255
Pramaan-Account
string

Optional. One of your account ids (GET /v1/accounts): run on that account, whatever your routing rules say. The response header X-Pramaan-Account names the account that ran.

Pramaan-End-User
string

Optional. Your own tag for your end user: a sticky: end_user rule keeps them on the account that first served them.

Maximum string length: 256
Pramaan-End-User-Group
string

Optional. Your end user's group, matched by rules with endUserGroup.

Maximum string length: 64

Body

application/json
bucket
string
required

The bucket name, as returned by storage.buckets.list.

Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$
path
string
required

Exact path inside your bucket.

Maximum string length: 1024
contentType
string

Media type of the bytes.

Maximum string length: 256
Pattern: ^[a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+$
metadata
object

Custom metadata to store with the bytes.

checksum
object

Verify the transferred bytes against this checksum.

encryption
enum<string>

Use the account default encryption or request managed encryption.

Available options:
default,
managed
tier
enum<string>

Storage tier. Archive choices can cost more and require restoration.

Available options:
standard,
infrequent,
archive,
deep-archive
tags
object[]

Complete tag set, up to ten tags. An empty set clears all tags.

Maximum array length: 10

Response

The result

bucket
string
required

The bucket name, as returned by storage.buckets.list.

Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$
path
string
required

Exact path inside your bucket.

Maximum string length: 1024
ref
string

Reference to what this call created. Pass it as ref to storage.upload.part.put, storage.upload.part.copy, storage.upload.parts.list, storage.upload.complete or storage.upload.abort.