---
title: "Hosted storage: whether it is offered, the quota, and how much is locked"
method: GET
path: "/api/v1/orgs/{org_id}/storage"
---

# Hosted storage: whether it is offered, the quota, and how much is locked

`GET /api/v1/orgs/{org_id}/storage`

## Request

- Base URL: `https://safegrd.dev`
- URL: `https://safegrd.dev/api/v1/orgs/{org_id}/storage`
- Auth: HTTP bearer

## Path parameters

- `org_id` string, required

## Response `200`

Usage

- object
  - `offered` boolean
  - `quota_bytes` integer: Hosted storage the plan includes
  - `used_bytes` integer: Locked, or granted to an upload in flight
  - `regime` 'quota' | 'metered' | 'lapsed': quota: refused at quota_bytes (free plan, trial). metered: never refused for size; the period's average above quota_bytes is billed per GB-month. lapsed: refused past limit_bytes
  - `limit_bytes` integer: Where uploads are refused, when that differs from quota_bytes
  - `overage_cents_per_gb_month` integer: Metered plans: the price of a GB-month above the quota, in US cents
  - `period_start` string, date-time
  - `period_overage_gb_months` integer: Metered plans: GB-months above the quota this period so far, rounded down
  - `period_overage_cents` integer: Metered plans: what this period's overage comes to so far, in US cents
  - `lapsed_plan` string: Lapsed: the last plan paid for, whose quota sets limit_bytes
  - `last_lock_expires_at` string, date-time: When the last byte held stops being locked

## Other responses

- `401`: Refused. The body says why.
- `403`: Refused. The body says why.
- `404`: Refused. The body says why.

---

[API](https://skmtc.dev/safegrd/apis/safegrd-api.md) · [All operations](https://skmtc.dev/safegrd/apis/safegrd-api/llms.txt) · [OpenAPI document](https://skmtc.dev/safegrd/apis/safegrd-api/revisions/4dbca90c8a74?raw)
