Get Account Ballance
This API is to get Account SMS and MMS Ballance.
Parameters for getting Account Ballance
Headers Parameters
Parameters | Description |
---|---|
Authorization | Please add provided Bearer token - linked to your Cellcast account. Check here |
Content-Type | application/json |
Code Samples
GET https://api.cellcast.com/api/v1/apiClient/account
bash
curl --location 'https://api.cellcast.com/api/v1/apiClient/account' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_KEY}}'
Replace with the actual API key that you own.
Responses
200 Success
json
{
"meta": {
"code": 200,
"status": "SUCCESS"
},
"message": "Here's your account",
"data": {
"account_name": "Test Account",
"account_email": "cellcast01@maildrop.cc",
"sms_balance": 9972.2,
"mms_balance": 10000
},
"error": {}
}
401 Unauthorized
json
{
"code": 401,
"message": "Token expired",
"stack": "APIError: Token expired ...."
}