Get Team Credit Balance
Usage API
Get Team Credit Balance
Retrieve the current credit balance for your team, including prompt credits per seat, add-on credits, and billing cycle information.
POST
Get Team Credit Balance
Documentation Index
Fetch the complete documentation index at: https://docs.windsurf.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Retrieve the current credit balance information for your team. This includes prompt credits allocated per seat, the number of seats, add-on credit usage, and billing cycle dates.Request
Your service key with “Billing Read” permissions
Example Request
Response
Number of prompt credits allocated per seat for the current billing cycle
Number of seats on the team
Add-on credits available to the team for the current billing cycle only. This value is recomputed at the start of each billing cycle based on usage from the previous cycle, so it changes month over month and is not a lifetime total of purchased add-on credits.
Add-on credits consumed so far in the current billing cycle only. This counter resets at the start of each new cycle and does not include usage from previous cycles.
Start of the current billing cycle (ISO 8601 timestamp)
End of the current billing cycle (ISO 8601 timestamp)
Example Response
Error Responses
Common error scenarios:- Invalid service key or insufficient permissions
- Feature not available for your plan (requires enterprise tier)
- Rate limit exceeded