Galon Cloud
Galon API v1

/storage/usage

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

GET /storage/usage

Get Storage usage of the project bound to the key

Exact scope storage:read. Bytes only, no amounts; no parameters. Hidden surface: 404 not_found until the Galon Object opt-in is enabled and a qualified data plane is injected. No bytes pass through the API; no internal reference or provider name is returned.

API key (Bearer), on the public API endpoint.

Responses

StatusDescriptionBody
200Project quota and countersStorageUsage
400query_invalidError
401Key missing or invalidError
403scope_missing (storage:read)Error
404not_found (surface closed)Error
500storage_contract_invalid (project quota not provisioned)Error
503storage_temporarily_unavailableError

Examples

curl

curl -X GET "$GALON_API_BASE/storage/usage" \
  -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.usage();

Python (SDK)

from galon import Galon

galon = Galon()  # reads GALON_API_KEY
result = galon.storage.usage()