Records published claims: one to correct a number, many to import a leaderboard.
Records published claims: one to correct a number, many to import a leaderboard.
POST /v1/benchmark/claims
| Address | https://api.hanzo.ai/v1/benchmark/claims |
| Method | POST |
| Operation | post_benchmark_claims |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Records published claims: one to correct a number, many to import a leaderboard. Every row must carry a Source, because a claim without its citation is a number nobody can check — and an unattributed number in the published plane is indistinguishable from a measurement, which is the one confusion this whole surface is built to prevent.
Writes are append-only, so this never destroys the value it replaces. A vendor restating a score leaves both rows on disk, which is how the restating itself becomes visible.
Request
8 fields, body application/json (required).
| Field | In | Type | Required | Description |
|---|---|---|---|---|
by | body | string | — | By is who is recording them — a person, or the importer's name. |
data | body | publishedClaim[] | — | Data is the claims to record. One row is a correction; many is an import. |
data[].benchmark | body | string | — | Benchmark is the canonical test id the claim is about, from /catalog. |
data[].model | body | string | — | Model is the system the score is claimed for. |
data[].protocol | body | string | — | Protocol records HOW it was scored — provider-reported, agentic, third-party-leaderboard — because a provider card and a third party running its own harness… |
data[].provider | body | string | — | Provider is who the claim belongs to — the lab or leaderboard whose number this is. |
data[].score | body | number | — | Score is the reported aggregate, as a percentage. |
data[].source | body | string | — | Source is the citation the row was read from. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | putClaimsOut | ok |
200 body — 2 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
recorded | body | integer | — | Recorded is how many rows were written. |
rejected | body | string[] | — | Rejected names the rows that were not, and why. |
Failure carries the platform error shape — see Errors.
Examples
hanzo benchmark claims createimport { Configuration, BenchmarkApi } from 'hanzoai';
const api = new BenchmarkApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.postBenchmarkClaims({ by: "<by>", data: [{"benchmark":"<benchmark>","model":"<model>","protocol":"<protocol>","provider":"<provider>"}] });from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import BenchmarkApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = BenchmarkApi(client).post_benchmark_claims(by="<by>", data=[{"benchmark":"<benchmark>","model":"<model>","protocol":"<protocol>","provider":"<provider>"}])cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.BenchmarkAPI.PostBenchmarkClaims(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, benchmark_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = benchmark_api::post_benchmark_claims(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.BenchmarkApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new BenchmarkApi(client).postBenchmarkClaims();curl -X POST https://api.hanzo.ai/v1/benchmark/claims \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"by": "<by>",
"data": [
{
"benchmark": "<benchmark>",
"model": "<model>",
"protocol": "<protocol>",
"provider": "<provider>"
}
]
}'The door reaches benchmark through the benchmark tool, which names its 6 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": "get_benchmark_catalog"
}
}
}'How is this guide?