GET
/api/v1/account/balanceCheck account balanceReturns the wallet balance, currency and per-SMS cost.
Your wallet's stable ID. Shown on the API page.
JavaScript fetch snippet
/api/v1/account/balance
// 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);
// Example response (200)
// {
// "success": true,
// "data": {
// "wallet_id": "{WALLET_ID}",
// "balance": 79401,
// "currency": "UGX",
// "cost_per_sms": 35
// }
// }