Api
Credits
Credit balance and usage.
GET
Return the workspace's granted, held, consumed, and available credits.
active_granted is what grants in effect give, active_holds what in-flight work
reserves, total_consumed what was spent, and available what can still be spent.
HTTPBearerheader
AuthorizationBearer <token>Successful Response
application/json- response
Workspace credit balance summary.
workspace_id*Workspace IdWorkspace the balance belongs to.
Format
uuidavailable*Availableactive_granted minus total_consumed; may be negative. New paid work starts only while it is above zero.
active_granted*Active GrantedCredits from grants in effect and not expired.
total_consumed*Total ConsumedCredits consumed over the workspace's lifetime.
active_holds*Active HoldsCredits reserved by in-flight work; always 0.
curl -X GET 'https://api.presentations.ai/api/v1/credits'Example Response
{ "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9", "available": 0, "active_granted": 0, "total_consumed": 0, "active_holds": 0}