OpenapiTel
Counts what this org holds on the telephony plane: its numbers, its calls and…
Counts what this org holds on the telephony plane: its numbers, its calls and its messages.
GET /v1/tel/summary
| Address | https://api.hanzo.ai/v1/tel/summary |
| Method | GET |
| Operation | get_tel_summary |
| Auth | Authorization: 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
| Status | Body | Meaning |
|---|---|---|
200 | summary | ok |
200 body — 3 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
calls | body | integer | — | Calls is how many calls this org has placed or received, over its whole history — a running total, not a window. |
messages | body | integer | — | Messages is the same running total for messages. |
numbers | body | integer | — | Numbers is how many numbers this org holds right now. |
Failure carries the platform error shape — see Errors.
Examples
hanzo tel summaryimport { 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 := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.TelAPI.GetTelSummary(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::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.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + 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": {}
}
}
}'How is this guide?