Get Wallet Balance
GET /masking/billing
Returns the current wallet balance. Useful for checking funds before initiating a call programmatically — calls are billed at Rs 1.50/minute from this prepaid balance.
Request
curl https://voice-api.edesy.in/v1/masking/billing \
-H "Authorization: Bearer vp_YOUR_API_KEY"
const response = await fetch("https://voice-api.edesy.in/v1/masking/billing", {
headers: { "Authorization": "Bearer vp_YOUR_API_KEY" },
});
console.log(await response.json());
import requests
response = requests.get(
"https://voice-api.edesy.in/v1/masking/billing",
headers={"Authorization": "Bearer vp_YOUR_API_KEY"},
)
print(response.json())
Responses
200 — Current balance
{
"data": { "balance": 487.32, "currency": "INR" }
}
Top up your wallet on the portal. If the balance is below the cost of a 1-minute call, Initiate a Call returns 402 insufficient_balance.