# Get balance

> What is left to spend. `reserved` is held against tasks still running and is released or charged when each one finishes.

`GET /balance`

**Auth:** API key or OAuth token

## Response

### 200 — Account balance

- `data` (required, object)
  - `available` (required, string) — Spendable balance: balance minus reserved.
  - `balance` (required, string) — Current account balance in USD.
  - `currency` (required, "usd")
  - `reserved` (required, string) — Amount reserved by in-flight tasks.

```json
{
  "data": {
    "available": "string",
    "balance": "string",
    "currency": "usd",
    "reserved": "string"
  }
}
```

## Request samples

### cURL

```bash
curl https://api.mynth.io/balance \
  -H "Authorization: Bearer $MYNTH_API_KEY"
```

### JavaScript

```ts
const response = await fetch("https://api.mynth.io/balance", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MYNTH_API_KEY}`,
  },
});

const { data } = await response.json();
```

The full schema for this endpoint is in the [OpenAPI document](https://api.mynth.io/openapi.json).
