OpenapiTel
Lists the calls this org has placed or received, newest first.
Lists the calls this org has placed or received, newest first.
GET /v1/tel/calls
| Address | https://api.hanzo.ai/v1/tel/calls |
| Method | GET |
| Operation | get_tel_calls |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Lists the calls this org has placed or received, newest first. Like the message list beside it, these are our own records rather than the carrier's.
Request
GET /v1/tel/calls takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | callList | ok |
200 body — 7 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
data | body | Call[] | — | Data is this org's own calls, newest first — what this platform placed or received on its behalf, which is our record rather than the carrier's. |
data[].agent | body | string | — | Agent names the Hanzo assistant handling the call. |
data[].from | body | string | — | From is the calling number in E.164. |
data[].id | body | string | — | ID is the carrier's handle for the call — what a hangup or a lookup names. |
data[].org | body | string | — | Org is the tenant the call was placed for or received by. |
data[].status | body | string | — | Status is where the call is: "queued", "ringing", "answered", "completed" or "failed". |
data[].to | body | string | — | To is the called number in E.164. |
Failure carries the platform error shape — see Errors.
Examples
hanzo tel calls listimport { Configuration, TelApi } from 'hanzoai';
const api = new TelApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTelCalls();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_calls()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.TelAPI.GetTelCalls(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_calls(&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).getTelCalls();curl https://api.hanzo.ai/v1/tel/calls \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches tel through the tel tool, which names its 10 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "list_tel_calls"
}
}
}'How is this guide?