GET
/
v1
/
tenant
/
usage
Get the usage details of tenant
curl --request GET \
  --url https://{region}.api.plerion.com/v1/tenant/usage \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "startDate": "2022-01-18T08:37:30Z",
    "endDate": "2022-01-18T08:37:30Z",
    "consumedPlerionUnits": 89057,
    "tenantCap": 600000,
    "remainingPlerionUnits": 558911
  }
}

Authorizations

Authorization
string
header
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Headers

Authorization
string
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Content-Type
string

application/json

Query Parameters

date
string<date>

Specify the date to get usage for the billing interval that falls on that date. If you don't include a date parameter, the API will default to using the current date. Accepts date time in the format yyyy-MM-dd, for example 2023-03-12.

Example:

"2022-02-01"

Response

200
application/json

Tenant Usage Details

The response is of type object.