POST
/
api
/
v1
/
buckets
/
{uuid}
/
objects
/
upload_url
Generate upload URL
curl --request POST \
  --url https://app.miget.com/api/v1/buckets/{uuid}/objects/upload_url \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "size": 123,
  "content_type": "application/octet-stream"
}
'

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Headers

X-Workspace-Id
string

Workspace ID (uses default workspace if not provided)

Path Parameters

uuid
string
required

Body

application/json

Generate upload URL

key
string
required

Object key (file path)

size
integer<int32>
required

File size in bytes

content_type
string
default:application/octet-stream

File content type

Response

Upload URL generated