Get credit balance
Read the active organization's credit balance and pricing
GET
/v1/creditsCurrent credit balance for the active organization, plus the plan and the credit pricing table. Pass `?orgId=` to target a specific organization the caller is a member of.
Query parameters
orgIdstringTarget a specific organization the caller belongs to. Defaults to the active org.
Responses
Balance, plan, and pricing.
balanceintegerrequiredAvailable credits for the organization.
planobjectrequiredThe organization's plan definition.
pricingobjectrequiredCredit cost table keyed by feature.
pricingVersionintegerrequiredMonotonic version of the pricing table.
curl --request GET \
--url "https://api.squirrelscan.com/v1/credits"{
"balance": 123,
"plan": {},
"pricing": {},
"pricingVersion": 123
}