Credit Balance
curl --request GET \
--url https://api.sentrion.ai/api/v1/credits/balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sentrion.ai/api/v1/credits/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.sentrion.ai/api/v1/credits/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sentrion.ai/api/v1/credits/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sentrion.ai/api/v1/credits/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sentrion.ai/api/v1/credits/balance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sentrion.ai/api/v1/credits/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyBilling
Credit Balance
Read your current credit balance and billing information
GET
/
api
/
v1
/
credits
/
balance
Credit Balance
curl --request GET \
--url https://api.sentrion.ai/api/v1/credits/balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sentrion.ai/api/v1/credits/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.sentrion.ai/api/v1/credits/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sentrion.ai/api/v1/credits/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sentrion.ai/api/v1/credits/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sentrion.ai/api/v1/credits/balance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sentrion.ai/api/v1/credits/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyRead the current balance for the authenticated API key. No query parameters
or target API key are needed.
The response uses
Errors use a
Authentication and credits
UseAuthorization: Bearer YOUR_API_KEY. An active API key is required. This
endpoint consumes no credits and works with zero or negative balances.
Example request
curl 'https://api.sentrion.ai/api/v1/credits/balance' \
-H 'Authorization: Bearer YOUR_API_KEY'
Response
{
"credits_remaining": 150,
"plan_type": "basic",
"billing_date": "2026-09-15"
}
| Field | Meaning |
|---|---|
credits_remaining | Current combined credit balance. Zero and negative values are returned as stored. |
plan_type | Stored plan name, or null when unset. It does not define a credit allowance. |
billing_date | Billing-cycle anchor for duplicate-charge protection, or null when unset. It is not an expiry or promised renewal date. |
Cache-Control: no-store so callers receive a fresh balance.
Separate remaining plan/top-up balances and expiry dates are not provided and
cannot be derived from the total or billing date.
Errors
| Status | Meaning |
|---|---|
| 403 | Missing, invalid, or inactive API key |
| 503 | Account information temporarily unavailable |
detail field. Successful responses use the object shown above,
without a success or data wrapper.