Check balance

Legacy APIs - SMS
Starting a new integration? This is a legacy API. It stays available for existing integrations, but new integrations should use the SMS V3 APIs.

Check your account balance with your API key and password.

POSThttps://telcomw.com/api-v2/balance

Send the parameters as form-data.

Parameters

Parameter Required Description
api_key YES The unique API key of your account.
password YES The password of your account.

Example request

curl --location --request POST 'https://telcomw.com/api-v2/balance' \
  --data-urlencode 'api_key=YOUR_API_KEY' \
  --data-urlencode 'password=YOUR_PASSWORD'
curl --location --request POST "https://telcomw.com/api-v2/balance" ^
  --data-urlencode "api_key=YOUR_API_KEY" ^
  --data-urlencode "password=YOUR_PASSWORD"
<?php

$data = [
    'api_key' => 'YOUR_API_KEY',
    'password' => 'YOUR_PASSWORD'
];

$ch = curl_init('https://telcomw.com/api-v2/balance');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

print_r(json_decode($response, true));
const axios = require('axios');

axios.request({
  method: 'post',
  url: 'https://telcomw.com/api-v2/balance',
  data: new URLSearchParams({
    'api_key': 'YOUR_API_KEY',
    'password': 'YOUR_PASSWORD'
  })
}).then((res) => console.log(res.data))
  .catch((err) => console.error(err.response ? err.response.data : err.message));
import requests

data = {
    'api_key': 'YOUR_API_KEY',
    'password': 'YOUR_PASSWORD'
}

response = requests.request('POST', 'https://telcomw.com/api-v2/balance', data=data)
print(response.json())