List summary

Counts what this org holds on the telephony plane: its numbers, its calls and its messages.

GET /v1/tel/summary

Addresshttps://api.hanzo.ai/v1/tel/summary
MethodGET
Operationget_tel_summary
AuthAuthorization: Bearer $HANZO_API_KEY

Counts what this org holds on the telephony plane: its numbers, its calls and its messages. The one read a dashboard makes before it asks for any list, so it answers three totals and no rows.

Request

GET /v1/tel/summary takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200tel.summaryok
defaultproblem-detailsrefused

200 body — 3 fields.

FieldInTypeAlwaysDescription
callsbodyinteger (int64)—Calls is how many calls this org has placed or received, over its whole history — a running total, not a window.
messagesbodyinteger (int64)—Messages is the same running total for messages.
numbersbodyinteger (int64)—Numbers is how many numbers this org holds right now.

Failure carries the platform error shape — see Errors.

Examples

hanzo tel summary
import { Configuration, TelApi } from 'hanzoai';

const api = new TelApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTelSummary();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TelApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TelApi(client).get_tel_summary()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.TelAPI.GetTelSummary(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, tel_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = tel_api::get_tel_summary(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TelApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new TelApi(client).getTelSummary();
curl https://api.hanzo.ai/v1/tel/summary \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool tel, op get_tel_summary — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "tel",
         "arguments": {
           "op": "get_tel_summary",
           "input": {}
         }
       }
     }'

Tel API · All Hanzo APIs · Interactive reference

Was this page useful?