MediaGet storage usage

Get storage usage

Returns how much of your organization's storage quota is in use, and the largest file your plan accepts for each kind of file. The quota is shared by every documentation in the organization.

curl -X GET "https://api.documentationai.app/api/v1/storage" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "usedBytes": 734003200,
  "quotaBytes": 5368709120,
  "percentUsed": 14,
  "objectCount": 312,
  "isWarning": false,
  "isOverQuota": false,
  "limits": {
    "maxImageBytes": 10485760,
    "maxVideoBytes": 31457280,
    "maxDocumentBytes": 20971520
  }
}
GET
/storage
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

Responses

usedBytesinteger

Storage in use, in bytes

quotaBytesinteger

Storage your plan includes, in bytes

percentUsedinteger

Share of the quota in use, from 0 to 100

objectCountinteger

Number of files stored

isWarningboolean

True from 80% of the quota until it is full

isOverQuotaboolean

True when the quota is full. Uploads and publishing pause until you are under the limit.

limitsobject

The largest file your plan accepts for each kind, in bytes