Balance API
The Balance API allows you to check your current account balance and manage your usage effectively. This API ensures that you can monitor your credits in real-time, helping you to avoid interruptions in your communication services.
Get Account Balance
Request
Endpoint: /account/balance
Method: GET
// Request Headers:
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
Response
{
"status": "success",
"balance": 1500,
"currency": "USD",
"last_updated": "2024-06-29T12:34:56Z"
}
Example Use Case
Fetching Account Balance
To fetch your current credit balance, send a POST
request to the /account/balance
endpoint.
Here’s an example using curl
:
curl -X GET https://api.unecast.com/v1.0/account/balance \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
Response
{
"status": "success",
"balance": 1500,
"currency": "USD",
"last_updated": "2024-06-29T12:34:56Z"
}
Last updated
Was this helpful?