# Wallet API

Source: https://aicallstudio.com/docs/api/wallet. Authentication, scopes, limits, errors and webhooks: https://aicallstudio.com/docs/api

### Wallet and this month's usage

`GET /api/v1/wallet` (scope `wallet:read`)

What the wallet holds, and what calls have used this calendar month (India time) so far.

**Answer (200): these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `balance_inr` (required) | number | — |
| `low_balance_mark_inr` (required) | number | Below this the wallet.low_balance webhook is sent. |
| `month_spend_inr` (required) | number | Spent from the wallet this calendar month so far. |
| `month_calls` (required) | integer | Calls this calendar month so far. |
| `month_billed_minutes` (required) | number | — |
| `included_minutes` (required) | integer | The plan's included minutes a month. |
| `included_minutes_left` (required) | number | — |

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl "https://aicallstudio.com/api/v1/wallet" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN"
```
