usage

Read what an account has used of each plan quota in the current billing period, with its tier, project count, credits spent and warnings; returns usage where a total of -1 means unlimited. Requires account.billing.read.

Responses

query Usage {  usage {    accountId    projectCount    creditsSpent    storage {      used      total      percentUsed      remaining    }    bandwidth {      used      total      percentUsed      remaining    }    apiCalls {      used      total      percentUsed      remaining    }    customDomains {      used      total      percentUsed      remaining    }    codeExports {      used      total      percentUsed      remaining    }    veryfrontBadge {      used      total      percentUsed      remaining    }    periodStart    periodEnd    tier    warnings  }}
{  "data": {    "usage": {      "accountId": "string",      "projectCount": 0,      "creditsSpent": 0,      "storage": {        "used": 0,        "total": 0,        "percentUsed": 0,        "remaining": 0      },      "bandwidth": {        "used": 0,        "total": 0,        "percentUsed": 0,        "remaining": 0      },      "apiCalls": {        "used": 0,        "total": 0,        "percentUsed": 0,        "remaining": 0      },      "customDomains": {        "used": 0,        "total": 0,        "percentUsed": 0,        "remaining": 0      },      "codeExports": {        "used": 0,        "total": 0,        "percentUsed": 0,        "remaining": 0      },      "veryfrontBadge": {        "used": 0,        "total": 0,        "percentUsed": 0,        "remaining": 0      },      "periodStart": "string",      "periodEnd": "string",      "tier": "string",      "warnings": [        "string"      ]    }  }}

The Usage! in data.usage.