Yapper API
Api reference
GET
/usage/storage

Stored bytes and asset counts by type, plus trashed items still held until they are purged. Matches the Storage card on the account usage page. Pass memberId for the assets one member created; another member's storage requires the key's member to be a team owner or admin. Returns usage_breakdown_unavailable (409) until the workspace's storage has been indexed.

Authorization

bearerAuth usage:read
AuthorizationBearer <token>

In: header

Scope: usage:read

Query Parameters

memberId?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/usage/storage"
{  "memberId": "string",  "bytes": 0,  "assetCount": 0,  "trashBytes": 0,  "trashAssetCount": 0,  "byType": {    "image": {      "bytes": 0,      "assetCount": 0    },    "video": {      "bytes": 0,      "assetCount": 0    },    "audio": {      "bytes": 0,      "assetCount": 0    },    "file": {      "bytes": 0,      "assetCount": 0    },    "document": {      "bytes": 0,      "assetCount": 0    }  },  "updatedAt": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}