← All documentation

API & integrations

Enterprise

Enterprise credits API

Read your credit pool, purchase credits, and allocate credits to subscribers.

GET /api/v1/enterprise/credits

Returns pool balance and auto top-up settings. Requires read scope.

POST action: purchase

Body: { "action": "purchase", "credits": 1000 }. Returns checkoutUrl for Stripe. Requires write scope.

POST action: allocate

Body: { "action": "allocate", "credits": 100, "subscriberCompanyId": "..." } or licenseCode. Deducts from your pool and credits the subscriber. Requires write scope.