> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get wallet balance

> Fetch your Dojah wallet balance — a simple GET that returns the funds available to your app, so you can monitor spend and avoid 402 errors.

<div className="dj-endpoint">
  <span className={`dj-method dj-method-get`}>GET</span>
  <code>/api/v1/balance</code>
</div>

Fetch your Dojah wallet balance. Every paid API call draws down this balance, so poll it to monitor spend or guard against a 402 Insufficient wallet balance before a batch of requests.

## Headers

| Header          | Required | Description                                         |
| --------------- | -------- | --------------------------------------------------- |
| `Authorization` | Yes      | Your app's secret key, sent as-is — *not* `Bearer`. |
| `AppId`         | Yes      | The App ID from your dashboard.                     |

## Query parameters

This endpoint takes no query parameters — authentication is by header only. Your `AppId` identifies which wallet to read.

## Response

Returns an `entity` with a single `wallet_balance` field — a string amount in your account currency (NGN).

| Field            | Type   | Description                               |
| ---------------- | ------ | ----------------------------------------- |
| `wallet_balance` | string | Funds currently available in your wallet. |

## Errors

| Code  | Meaning                                                                             |
| ----- | ----------------------------------------------------------------------------------- |
| `400` | Invalid request parameters.                                                         |
| `401` | App couldn't be validated — check your secret key and `AppId` (no `Bearer` prefix). |
| `429` | Too many requests — back off and retry.                                             |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    "https://api.dojah.io/api/v1/balance" \
    -H "Authorization: {{secret_key}}" \
    -H "AppId: {{app_id}}"
  ```

  ```js Node.js theme={null}
  const res = await fetch("https://api.dojah.io/api/v1/balance", {
    headers: {
      Authorization: process.env.DOJAH_SECRET_KEY,
      AppId: process.env.DOJAH_APP_ID,
    },
  });
  const data = await res.json();
  ```

  ```python Python theme={null}
  import os, requests

  res = requests.get(
      "https://api.dojah.io/api/v1/balance",
      headers={
          "Authorization": os.environ["DOJAH_SECRET_KEY"],
          "AppId": os.environ["DOJAH_APP_ID"],
      },
  )
  data = res.json()
  ```
</RequestExample>

<ResponseExample>
  ```json GET /api/v1/balance theme={null}
  {
    "entity": {
      "wallet_balance": "14132.00"
    }
  }
  ```
</ResponseExample>
