rust.solutions

Huck Storage API

storage.rust.solutions is a simple authenticated file store. All requests except GET /healthz require the header:

Authorization: Bearer <token>

Endpoints

MethodPathDescription
GET/healthzLiveness check, no auth
GET/fList all stored files
PUT/f/{key}Upload a file
GET/f/{key}Download a file
DELETE/f/{key}Delete a file

Keys match [A-Za-z0-9._/-]{1,128} (supports path-style keys). Individual files are capped at 50 MiB; total storage is capped at 1 GiB. Content-Type is preserved on upload and returned on download.

Example

# Upload a file
curl -X PUT https://storage.rust.solutions/f/data/hello.txt \
  -H "Authorization: Bearer $HUCK_TOKEN" \
  -H "Content-Type: text/plain" \
  --data-binary "Hello, world!"

# List stored files
curl https://storage.rust.solutions/f \
  -H "Authorization: Bearer $HUCK_TOKEN"

# Download
curl https://storage.rust.solutions/f/data/hello.txt \
  -H "Authorization: Bearer $HUCK_TOKEN"

# Delete
curl -X DELETE https://storage.rust.solutions/f/data/hello.txt \
  -H "Authorization: Bearer $HUCK_TOKEN"

Limits

LimitValue
Max file size50 MiB
Total storage1 GiB
Max key length128 characters