---
title: "What this key has to spend"
method: GET
path: "/wallet"
---

# What this key has to spend

`GET /wallet`

## Request

- Base URL: `https://api.spacecontext.app/v1`
- URL: `https://api.spacecontext.app/v1/wallet`
- Auth: HTTP bearer

For agents: the balance, the free scans left, the price of a scan and whether a card is on file (`card_on_file`: live scans need one). A test key reads a fixed test-mode wallet instead (balance 0, no free scan, `card_on_file` false, automatic recharge off, the live price): test scans cost nothing and need no card. Needs the `scans:read` scope.

## Response `200`

Wallet

- Wallet
  - `object` 'wallet', required
  - `currency` 'usd', required
  - `balance_cents` integer, required
  - `free_scans_remaining` integer, required
  - `scan_price_cents` integer, required
  - `card_on_file` boolean, required: A real card stands behind the account: a card saved in the console, a paid top-up, or a settled x402 payment on mainnet. Starting a live scan, and creating a live key that can scan, need it: without it they answer 402 `PAYMENT_METHOD_REQUIRED`. Adding a card charges nothing.
  - `tax_added` boolean: Whether tax is added on top of top-ups and automatic recharges where it applies (such as VAT), from the billing address and tax ID, and shown on the payment page and the invoice. A business with a valid VAT number in another EU country is invoiced under the reverse charge. The balance always receives the amount before tax.
  - `auto_recharge` object, required
    - `enabled` boolean, required
    - `threshold_cents` integer, nullable
    - `amount_cents` integer, nullable
    - `payment_method_saved` boolean
    - `last_error` string, nullable
  - `terms_accepted` object, nullable: Console only (absent from `GET /wallet`): the first time this account accepted the current version of the billing terms, with the box of a payment or card page; null if never, or only an older version. The box is still ticked on every page (`accept_terms`), and the first acceptance is kept on later payments for a dispute.
    - `version` string, required
    - `accepted_at` string, date-time, required

## Other responses

- `401`: Error response
- `403`: Error response
- `429`: Too many requests. Retry after the number of seconds in `Retry-After`.

---

[API](https://skmtc.dev/spacecontext/apis/space-context-api.md) · [All operations](https://skmtc.dev/spacecontext/apis/space-context-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacecontext/apis/space-context-api/revisions/1dca940259b4?raw)
