List records
List the caller's records.
GET /v1/ai/records
| Address | https://api.hanzo.ai/v1/ai/records |
| Method | GET |
| Operation | get_ai_records |
| Auth | Authorization: Bearer $HANZO_API_KEY |
List the caller's records.
Request
GET /v1/ai/records takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | Envelope. | |
401 | — | No credential, or one this service does not accept. |
403 | — | A valid credential that may not do this. |
200 body — 35 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
data | body | any | — | The operation's own result. |
data2 | body | any | — | A second result the operation defines, when it has one. |
msg | body | string | yes | Empty on success, the reason on failure. |
status | body | string | yes | One of ok, error. |
data[].action | body | string | — | |
data[].block | body | string | — | |
data[].block2 | body | string | — | |
data[].blockHash | body | string | — | |
data[].blockHash2 | body | string | — | |
data[].city | body | string | — | |
data[].clientIp | body | string | — | |
data[].count | body | integer | — | |
data[].createdTime | body | string | — | |
data[].errorText | body | string | — | |
data[].id | body | integer | — | |
data[].isTriggered | body | boolean | — | |
data[].language | body | string | — | |
data[].method | body | string | — | |
data[].name | body | string | — | |
data[].needCommit | body | boolean | — | |
data[].object | body | string | — | |
data[].organization | body | string | — | |
data[].owner | body | string | — | |
data[].provider | body | string | — | |
data[].provider2 | body | string | — | |
data[].query | body | string | — | |
data[].region | body | string | — | |
data[].requestUri | body | string | — | |
data[].response | body | string | — | |
data[].section | body | string | — | |
data[].transaction | body | string | — | |
data[].transaction2 | body | string | — | |
data[].unit | body | string | — | |
data[].user | body | string | — | |
data[].userAgent | body | string | — |
Failure carries the platform error shape — see Errors.
Examples
CLI
SDK
HTTP
MCP
hanzo ai records list.ts
.py
.go
.rs
.java
import { Configuration, AiApi } from 'hanzoai';
const api = new AiApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getAiRecords();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AiApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AiApi(client).get_ai_records()cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.AiAPI.GetAiRecords(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, ai_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = ai_api::get_ai_records(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AiApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new AiApi(client).getAiRecords();curl https://api.hanzo.ai/v1/ai/records \
-H "Authorization: Bearer $HANZO_API_KEY"MCP declares no tool for ai — tools/list on https://api.hanzo.ai/v1/mcp names the products it does reach. Use HTTP or an SDK.
Was this page useful?