GET
/
organization
/
credits
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
credits_report = client.organization.credits.get()
print(credits_report.consumed)
{
  "remaining": 123,
  "consumed": 123,
  "total": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Credits Summary

remaining
number
required

The number of unused credits remaining for the current billing period.

consumed
number
required

The number of credits consumed in the current billing period.

total
number
required

The initial total number of credits for the current billing period.