API referenceIdentity
Get Credits
The tenant's credit balance and its most recent ledger entries, so a
caller can assert what an operation cost. Requires the read scope.
Authorization
apiKey AuthorizationBearer <token>
First-party API key (sbk_live_…), presented as a Bearer token.
In: header
Query Parameters
limit?Limit
Ledger entries to include
Range
1 <= value <= 100Default
20Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/me/credits"{ "balance": 0, "plan": "string", "period_ends_at": "2019-08-24T14:15:22Z", "ledger": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "amount": 0, "type": "string", "description": "string", "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "created_at": "2019-08-24T14:15:22Z", "balance_after": 0 } ]}