Wallet API
Credit wallet balance for the authenticated user.
Base Path
https://api.chainabit.com/api/v1Authentication
JWT Bearer token required. The user must also have an active entitlement that includes wallet access.
Set up authentication and the shared environment in Prerequisites.
Endpoints
| Method | Path | Description | Auth |
|---|---|---|---|
| GET | /wallet/me | Get credit wallet balance | Bearer token |
| GET | /wallet/me/spend | Get your own spend for the current (or a given) period | Bearer token |
GET /wallet/me
Returns the selected account's credit wallet balance. A Personal wallet remains personal. For a Business account, this balance is an administrative financing total: each member's usage is limited by their own assigned paid license and its remaining allowance. A member cannot borrow another license's allowance. See Business billing.
Authentication: Bearer token (session or OAuth access token). Available on every plan, including free — there is no minimum-tier requirement to check your own balance.
Rate limit: 120 requests/60s per user, 180 requests/60s per account.
Request
No path or query parameters.
Response
Response Example
{
"data": {
"balanceCredits": "275",
"purchasedCreditsRemaining": "0",
"updatedAt": "2026-09-05T18:40:55.770Z",
"usedPercentage": 0,
"balanceStatus": "ok"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
balanceCredits | string | Account credit balance; this can differ from credits spendable on a request |
purchasedCreditsRemaining | string | null | Credits remaining from paid purchases. null means unavailable (the server cannot determine it); it is never reported as zero |
updatedAt | string | null | ISO 8601 timestamp of the latest balance update |
usedPercentage | number | Percentage of the daily credit quota consumed today (0–100) |
balanceStatus | string | Balance health: ok (< 75% of quota used), warning (≥ 75%), critical (≥ 90%), or exhausted (100%) |
Code Example
curl https://api.chainabit.com/api/v1/wallet/me \
-H "Authorization: Bearer $TOKEN"GET /wallet/me/spend
Returns what you personally have spent from the pooled account balance in a period — the number you can actually act on, as opposed to the pooled total. Every member can call this for themselves regardless of role.
Authentication: Bearer token. Available to every account member, on every plan.
Rate limit: 60 requests/60s per user, 120 requests/60s per account.
Request
| Query Parameter | Type | Required | Description |
|---|---|---|---|
since | string (ISO 8601) | No | Start of the period to measure. Defaults to the start of the current UTC calendar month. Values older than 400 days are floored to that horizon — check the response's periodStart for the window actually measured. |
Response
Response Example
{
"data": {
"periodStart": "2026-09-01T00:00:00.000Z",
"members": [
{ "chainerId": "...", "settledCredits": 120, "heldCredits": 5, "totalCredits": 125 }
],
"unattributedCredits": 0
}
}Response Fields
| Field | Type | Description |
|---|---|---|
periodStart | string | ISO 8601 start of the measured period |
members[].chainerId | string | The member's chainer ID — always the caller's own ID for this endpoint |
members[].settledCredits | number | Credits already charged |
members[].heldCredits | number | Credits set aside for runs still in progress |
members[].totalCredits | number | settledCredits + heldCredits |
unattributedCredits | number | Spend that cannot be attributed to a member — reported separately rather than guessed at |
Code Example
curl "https://api.chainabit.com/api/v1/wallet/me/spend" \
-H "Authorization: Bearer $TOKEN"Notes
- The balance is pooled at the account level, not per-member — it's the same figure regardless of which member of the account calls this endpoint.
usedPercentageandbalanceStatusdescribe today's consumption against your daily quota, not a running total against a subscription period. They are not your plan's weekly and five-hour usage limits; the CLI shows those withchainabit wallet usage.- This endpoint is available on every plan, including free — checking your own balance never requires an upgrade.