Credits belong to the workspace the key was created in. Top-ups and purchases are made in the dashboard; the API reads them.
Credit overview
GET /credits
Response
Credit history
GET /credits/ledger
Response
delta values add credits (top-ups, bonuses), negative values spend them.