Get Credit Usage
get_credit_usageCurrent Sliq credit balance, 30-day spend by agent, the card saved for gift purchases, and — for a workspace member — the shared team block.
Returns {'balance': float, 'usage_by_agent': [{'agent_id', 'title',
'credits_used', 'is_agent'}, ...], 'gift_card': str, 'team': None |
{'workspace_name', 'your_role', 'seats_used', 'seats_active', 'seat_limit',
'per_member_spend': [{'user_email', 'credits_used_30d', 'is_you'}, ...]}}.
gift_card is the label of the card the user saved under Settings → Billing
for gift purchases (e.g. 'Visa •••• 4242'), or '' when no card is saved.
balance/usage_by_agent are the same rollup the Billing page renders;
spend not tied to an agent groups by activity label (e.g. 'Standalone chat', 'Data
extraction'). team is None for solo users and otherwise mirrors the
Billing team card: seats_used counts invited+active seats (spoken for),
seats_active only active ones. per_member_spend excludes removed members
and unattributed charges, so it does not sum to pool spend — it is spend over
the last 30 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on_behalf_of | No | An agency client's email, from list_agency_clients, to run this call in that client's account: their agents, settings, connected accounts, and credits. Omit it to act on your own account. |