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);