Huck Storage API
storage.rust.solutions is a simple authenticated file store. All requests except GET /healthz require the header:
Authorization: Bearer <token>
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /healthz | Liveness check, no auth |
| GET | /f | List 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
| Limit | Value |
|---|---|
| Max file size | 50 MiB |
| Total storage | 1 GiB |
| Max key length | 128 characters |