curl --request GET \
--url https://api.cekura.ai/test_framework/billing/info/ \
--header 'X-CEKURA-API-KEY: <api-key>'import requests
url = "https://api.cekura.ai/test_framework/billing/info/"
headers = {"X-CEKURA-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-CEKURA-API-KEY': '<api-key>'}};
fetch('https://api.cekura.ai/test_framework/billing/info/', 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.cekura.ai/test_framework/billing/info/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-CEKURA-API-KEY: <api-key>"
],
]);
$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.cekura.ai/test_framework/billing/info/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
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.cekura.ai/test_framework/billing/info/")
.header("X-CEKURA-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/billing/info/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"balance_expiry": "2023-11-07T05:31:56Z",
"organization": 123,
"credits_remaining": "<string>",
"credits_used": "<string>",
"initial_balance": "<string>",
"subscription_status": {
"status": "active",
"is_active": true,
"is_trial": true,
"pack_name": "<string>",
"expire_at": "2023-11-07T05:31:56Z",
"last_payment_at": "2023-11-07T05:31:56Z",
"days_until_expiry": 123,
"created_at": "2023-11-07T05:31:56Z",
"pack": {
"name": "<string>",
"max_concurrent_runs_limit": 123,
"max_concurrent_chat_runs_limit": 123,
"max_agents_limit": 123,
"max_members_limit": 123,
"max_projects_limit": 123,
"billing_type": "<string>",
"subscription_overage": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Get Billing Info
Returns credits remaining, credits used, and subscription status for the organization. The organization is automatically determined from the API key. Only organization-scoped API keys are supported.
curl --request GET \
--url https://api.cekura.ai/test_framework/billing/info/ \
--header 'X-CEKURA-API-KEY: <api-key>'import requests
url = "https://api.cekura.ai/test_framework/billing/info/"
headers = {"X-CEKURA-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-CEKURA-API-KEY': '<api-key>'}};
fetch('https://api.cekura.ai/test_framework/billing/info/', 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.cekura.ai/test_framework/billing/info/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-CEKURA-API-KEY: <api-key>"
],
]);
$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.cekura.ai/test_framework/billing/info/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
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.cekura.ai/test_framework/billing/info/")
.header("X-CEKURA-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/billing/info/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"balance_expiry": "2023-11-07T05:31:56Z",
"organization": 123,
"credits_remaining": "<string>",
"credits_used": "<string>",
"initial_balance": "<string>",
"subscription_status": {
"status": "active",
"is_active": true,
"is_trial": true,
"pack_name": "<string>",
"expire_at": "2023-11-07T05:31:56Z",
"last_payment_at": "2023-11-07T05:31:56Z",
"days_until_expiry": 123,
"created_at": "2023-11-07T05:31:56Z",
"pack": {
"name": "<string>",
"max_concurrent_runs_limit": 123,
"max_concurrent_chat_runs_limit": 123,
"max_agents_limit": 123,
"max_members_limit": 123,
"max_projects_limit": 123,
"billing_type": "<string>",
"subscription_overage": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}balance from non-expiring purchased or complimentary credits in extra_balance. total_balance is the sum available to the organization. Usage normally consumes balance before extra_balance when the combined balance covers the charge.Authorizations
API Key Authentication. It should be included in the header of each request.
Query Parameters
Tenant scope. Supply one of organization_id when authenticating with a user session or OAuth bearer token; omit when using an API key already scoped to the tenant.
Response
Date the current credit balance expires (null if no expiry is set).
Example: 2026-06-23T10:00:00Z
Organization ID this billing record belongs to.
Example: 37
Credits currently available to spend on runs and calls.
Example: 7436.08
Credits consumed in the current billing cycle, calculated from that cycle's billing-cycle aggregate (run_credits + calllog_credits). Returns 0 until the cycle's aggregate is created and may lag usage by up to 30 minutes.
Example: 36462.14
Credits granted by the current pack at the start of the billing period (before any usage).
Example: 50000.00
Current subscription state for the org plus the active pack's max-allowed plan caps. status is one of active, trial, expired, inactive. days_until_expiry is negative when expire_at is in the past. Nested pack caps are the plan's ceilings — the org's currently configured limits may be lower. All fields are null/false when there is no active subscription.
Example:
{
"status": "active",
"is_active": true,
"is_trial": false,
"pack_name": "Enterprise",
"expire_at": "2026-06-15T10:00:00Z",
"last_payment_at": "2026-05-15T10:00:00Z",
"days_until_expiry": 34,
"created_at": "2025-08-01T09:00:00Z",
"pack": {
"name": "Enterprise",
"max_concurrent_runs_limit": 50,
"max_concurrent_chat_runs_limit": 50,
"max_agents_limit": 20,
"max_members_limit": 10,
"max_projects_limit": 10,
"billing_type": "subscription",
"subscription_overage": "0.08"
}
}
Show child attributes
Show child attributes
When this billing record was first created.
Example: 2024-01-15T10:30:00Z
When this billing record was last modified.
Example: 2026-05-12T14:25:30Z