Balance
Returns your current USD wallet balance. The response is cached for 30 seconds — frequent polling is fine and won't burn your rate limit.
POST
https://notpanel.com/api/v2action=balanceAPI key requiredRate limited (per-key + per-tier + per-IP)Body:
application/x-www-form-urlencodedParameters
| Name | Type | Description |
|---|---|---|
| keyRequired | string | Your API key. |
| actionRequired | string | Must be the literal string "balance". |
Example request
Replace YOUR_API_KEYwith the key generated under your dashboard’s API page.
curl -X POST https://notpanel.com/api/v2 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=balance"const res = await fetch("https://notpanel.com/api/v2", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
key: "YOUR_API_KEY",
action: "balance",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v2",
data={
"key": "YOUR_API_KEY",
"action": "balance",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'balance',
]);
$response = file_get_contents('https://notpanel.com/api/v2', false, stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $body,
'ignore_errors' => true,
],
]));
print_r(json_decode($response, true));
Example response
{
"balance": "47.32",
"currency": "USD"
}Common errors
| Status | Body | Cause |
|---|---|---|
| 403 | {"error":"Account suspended"} | Account is not active. |