Grava Docs

Get credit usage

GET/v1/usage

Returns the current balance and ledger entries from the last 30 days.

AuthorizationBearer <token>

API key shown once at creation and stored as a SHA-256 hash.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/usage"
{  "balance": 0,  "ledger": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "delta": 0,      "reason": "grant.signup",      "runId": "78c33d18-170c-44d3-a227-b3194f134f73",      "priceVersion": 1,      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "period": {    "startsAt": "2019-08-24T14:15:22Z",    "endsAt": "2019-08-24T14:15:22Z"  }}