palbaseDocs

Palbase Machines · API

GET/databases/sizes

List database sizes

Every database size, the ones that sleep first: what a database of it is given and may hold, its monthly limits, and whether this project may open one of it now. A size that is not open says why (reason): a size that is paid for is open to a project that may pay; the free size is open to every project, its databases of it — as many as it opens — sharing its free database hours.

Called by your server, with the project's secret key.

curl
curl -X GET "https://<your-ref>.palbase.studio/databases/sizes" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200List database sizes

400Validation failed or a required field is missing

401Missing or invalid API key

403Not the project's secret key

429Over the project's request limit, or its machine time for this period is used up

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation ListDatabaseSizes of machines's contract.