> For the complete documentation index, see [llms.txt](https://legacy-docs.usesmileid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.usesmileid.com/further-reading/faqs/is-there-an-api-i-can-use-to-monitor-my-wallet-balance.md).

# Is there an API I can use to monitor my wallet balance?

Your Smile ID wallet balance is always available by logging into the Smile ID dashboard. However, if you would like to monitor it programmatically there is an API which will tell you your current balance. The default currency is USD.

{% hint style="warning" %}
**POST https\://\[env].smileidentity.com/api/v2/partner/wallet\_balance**

**Where** **`[env]`** **is either "portal" or "prod"**

The information returned is the same. The env variable here is to denote which api key you are using to authenticate the request.
{% endhint %}

JSON request body:

```json
{
  "currency": "<optional 'KES', 'NGN', 'USD'>",
  "environment": "<'test' or 'production' to indicate which API key was used>",
  "partner_id": "<Put your partner ID here>",
  "signature": "<Put signature here>",
  "timestamp": "<Put the timestamp here>"
}
```

Example response:

```json
{
  "wallet_balance": 500.0,
  "current_as_of": "2020-05-21T20:39:56.173Z"
}
```

{% hint style="warning" %}
The "current\_as\_of" field indicates the last time your wallet was debited. We deduct jobs from your wallet as a background process rather than real-time. Much like a credit card bill, there will be a slight delay between the wallet balance and the actions taken by your users.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://legacy-docs.usesmileid.com/further-reading/faqs/is-there-an-api-i-can-use-to-monitor-my-wallet-balance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
