Get balance
get_balanceCheck remaining VA hours, cap room, spendable calls wallet balance, and open holds before proposing spend; confirms whether delegation is allowed without creating a task.
Instructions
Return remaining VA hours, capRoom, and whether a new cap can be filed. Also returns the calls wallet: balance_cents is spendable after open holds, wallet_cents is that amount plus holds_cents, and holds_cents is the sum of unsettled holds. addFundsUrl is POST /api/v1/billing/add-funds and this read does not create a Stripe session. canDelegate is false when hours are unavailable, when spendable hours are not above zero, or when open caps leave no room. canDelegate false while hoursRemaining is above zero means lower maxHours to capRoom or wait. It is not a buy-hours signal. Call this before proposing spend. Does not create a task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capRoom | No | Hours free for a new cap after open caps. Omitted when hours are unavailable. | |
| addFundsUrl | No | POST /api/v1/billing/add-funds. This read does not create a Stripe session. | |
| addHoursUrl | No | Buy-hours URL. Use it only when a live read is not above zero. | |
| canDelegate | No | False when hours are unavailable, spendable hours are not above zero, or capRoom is below the minimum new cap. | |
| holds_cents | No | Sum of unsettled call holds. | |
| wallet_cents | No | balance_cents plus holds_cents. | |
| balance_cents | No | Spendable calls-wallet cents after open holds. | |
| can_place_call | No | Whether the calls wallet can place a call. | |
| hoursRemaining | No | Live remaining hours when Ops returned a figure. | |
| hoursUnavailable | No | True when Ops did not return a live remaining figure. Not a buy-hours signal. |