ozvault home

OZVAULT CONNECT · QUOTA API

Read a user's storage quota

Check remaining capacity before uploading. Every OzVault account has one quota (15 GB free) shared by all connected apps.

Reviewed Published by OzVault

One allocation per account

#

Quota belongs to the user's account, not to your application. A free account has 15 GB (15,000,000,000 bytes); paid accounts have their purchased capacity. Connecting more applications never multiplies it. available already subtracts space reserved by uploads in progress. application.used is what your app stores, including files in trash.

Request
curl https://api.ozvault.lol/v1/storage/quota -H "Authorization: Bearer ova_..."
Response
{
  "unit": "bytes",
  "quota": 15000000000,
  "used": 2318840121,
  "reserved": 0,
  "available": 12681159879,
  "application": { "used": 41922, "files": 3 },
  "maxFileBytes": 256000000,
  "trashRetentionDays": 30
}

Enforced on the server

#

Uploads that would exceed available space fail with 413 QUOTA_EXCEEDED, even when several uploads race. Check available first to show a friendly message, but always handle the error.

Clear documentation is part of the product.