Storage API
Object storage, bucket management, and CORS management endpoints for Athena.
Bucket Routes
Athena now exposes bucket-level S3 management routes in addition to object and CORS helpers:
POST /storage/buckets/listPOST /storage/buckets/createPOST /storage/buckets/deletePOST /storage/buckets/corsPOST /storage/buckets/cors/setPOST /storage/buckets/cors/delete
Use the bucket routes when you need to discover available buckets from a saved storage profile, create a new bucket, delete an empty bucket, or inspect/edit browser CORS behavior.
Object Routes
Athena storage object operations are available at:
POST /storage/objectsPOST /storage/objects/headPOST /storage/objects/urlPOST /storage/objects/upload-urlPOST /storage/objects/folderPOST /storage/objects/delete
These routes support list, metadata-only lookup, signed URL retrieval, upload URL generation, folder placeholder creation, and delete workflows.
Auth requirements
Storage routes do not use a separate apikey header. You must present one of:
ATHENA_KEY_12— same value asX-Athena-KeyorX-Athena-Admin-Key, or- Gateway API key —
ath_*secret inX-Athena-Keywith thegateway.storage_proxyright.
Auth runs in middleware before the JSON body is parsed, so missing or invalid credentials yield 401 Unauthorized even when the body is not valid JSON.
For validation rules (bucket, endpoint, HTTPS), see Security, auth ordering, and rate limits.
Typical S3 profile flow
- Call
/storage/buckets/listwith endpoint, region, and credentials to discover available buckets for a profile. - Create a bucket with
/storage/buckets/createwhen the storage target is new. - Use
/storage/objects/heador/storage/objectsto validate object presence before download or delete flows. - Request a signed upload URL via
/storage/objects/upload-url. - Upload directly to object storage using the returned URL.
- Request a signed read URL via
/storage/objects/urlwhen needed. - Configure CORS for browser access where required.
Reference
See Reference -> Athena API Reference -> storage for exact request and response payloads.
Operation Links
- POST /storage/buckets/list
- POST /storage/buckets/create
- POST /storage/buckets/delete
- POST /storage/objects
- POST /storage/objects/head
- POST /storage/objects/url
- POST /storage/objects/upload-url
- POST /storage/objects/folder
- POST /storage/objects/delete
- POST /storage/buckets/cors
- POST /storage/buckets/cors/set
- POST /storage/buckets/cors/delete