Overview
GET/usage/storage/{userId}usage

Get a user's storage quota + usage (admin)

Fetch a record from storage by userId.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • userIdpathstring
Responses
200

Quota summary

  • quotaBytesinteger

    Per-user quota in bytes (override or 5 GB default)

  • usageBytesinteger

    Live sum of ready, non-deleted attachment bytes

  • availableBytesinteger

    max(0, quotaBytes - usageBytes)

Example
{
  "quotaBytes": 0,
  "usageBytes": 0,
  "availableBytes": 0
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
403

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/usage/storage/{userId}" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/usage/storage/{userId}", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  },
});
const data = await res.json();