/api/v1/account/balanceReturns the wallet balance, currency and per-SMS cost.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| walletId | query | string | Yes | Your wallet's stable ID. Shown on the API page. |
// JavaScript (browser or Node 18+)
const credentials = btoa("API_KEY:API_SECRET");
const res = await fetch(
"https://www.wesendall.com/api/v1/account/balance",
{
method: "GET",
headers: {,
"Authorization": `Basic ${credentials}`,
}
}
);
const data = await res.json();
console.log(data);