Get Balance
curl --request GET \
--url https://api.agentline.cloud/v1/billing/balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/billing/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/billing/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Billing
Get Balance
Get your AI telephony account balance and rate card.
Returns the current balance, currency, billing rates for calls, phone numbers, and inbound SMS, plus what the balance can cover. Use this to check affordability before paid telephony operations.
GET
/
v1
/
billing
/
balance
Get Balance
curl --request GET \
--url https://api.agentline.cloud/v1/billing/balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/billing/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/billing/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
AgentLine API key. Get one via the email OTP flow (POST /v1/auth/otp then POST /v1/auth/verify). Pass as: Authorization: Bearer sk_live_...
Response
200 - application/json
Successful Response