GET /storage/tier
Get the project's Storage tier
Exact scope storage:read. Prices in USD cents. Hidden surface: 404 not_found until Galon Storage is open to the account.
API key (Bearer), on the public API endpoint.
Responses
| Status | Description | Body |
|---|---|---|
200 | Tiers offered, current tier and scheduled change | object |
401 | Key missing or invalid | Error |
Examples
curl
curl -X GET "$GALON_API_BASE/storage/tier" \
-H "Authorization: Bearer $GALON_API_KEY"Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.storage.tier();Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.storage.tier()PUT /storage/tier
Change Storage tier
Exact scope storage:write. Paid from the balance. Hidden surface: 404 not_found until Galon Storage is open to the account.
API key (Bearer), on the public API endpoint.
Request body
application/json
| Field | Type | Description |
|---|---|---|
tier_id | string · required |
Responses
| Status | Description | Body |
|---|---|---|
200 | Change applied or scheduled | object |
422 | storage_tier_unknown | Error |
401 | Key missing or invalid | Error |
Examples
curl
curl -X PUT "$GALON_API_BASE/storage/tier" \
-H "Authorization: Bearer $GALON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tier_id": "string"}'Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.storage.changeTier({"tier_id": "string"});Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.storage.change_tier({"tier_id": "string"})