curl --request GET \
--url https://paradigm.lighton.ai/api/v3/storage \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/storage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/storage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"used_bytes": 1,
"metered": true,
"limit_bytes": 123
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Company storage usage
Returns the company’s current ingested-file footprint in bytes plus its tier’s included/free storage allowance. limit_bytes is the tier allowance (5 GB for free / pay-as-you-go, 100 GB for business) — a hard cap only for the free tier; for paid tiers it is the free allowance above which storage is metered. limit_bytes is null only when limit enforcement is disabled.
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/storage \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/storage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/storage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"used_bytes": 1,
"metered": true,
"limit_bytes": 123
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Total bytes of original ingested files attributed to the company across all workspace types
x >= 0True when the company is on a paid/metered plan — free-tier limits do not apply
Free-tier storage cap in bytes for non-metered companies. null when the company is metered (no cap) or the LIMIT_ENFORCEMENT_ENABLED feature flag is off.