OpenapiAgents
Returns the public index of every published build, most recently updated first,…
Returns the public index of every published build, most recently updated first, so a gallery can link straight to the story behind each product.
GET /v1/agents/builds
| Address | https://api.hanzo.ai/v1/agents/builds |
| Method | GET |
| Operation | get_agents_builds |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the public index of every published build, most recently updated first, so a gallery can link straight to the story behind each product. PUBLIC, no tenancy: publishing is the author's act, and only published root sessions appear here.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | — | Limit caps the page. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | buildList | ok |
200 body — 11 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
builds | body | buildSummary[] | — | Builds is every published build, most recently updated first. |
builds[].agent | body | string | — | Agent is the label the surface that did the work calls itself by. |
builds[].endedAt | body | string | — | EndedAt is when it finished, same format. |
builds[].org | body | string | — | Org and Project are the build's public ADDRESS — the pair the full story is read at, and the pair a visitor sees in the URL bar. |
builds[].project | body | string | — | Project is the product's slug, the second half of that address. |
builds[].repo | body | string | — | Repo is the repository the work was done in, as the session reported it. |
builds[].session | body | string | — | Session is the agent session behind the build, and the value its commits name in their Hanzo-Session: trailer. |
builds[].startedAt | body | string | — | StartedAt is when the session opened, RFC 3339 in UTC. |
builds[].status | body | string | — | Status is the session's own: running, paused, done or error — so a card can show a build still being written. |
builds[].title | body | string | — | Title is the human line for the card. |
builds[].turns | body | integer | — | Turns is HOW MANY turns the transcript holds — a COUNT, unlike the turn on each turn of the full story, which is that turn's position. |
Failure carries the platform error shape — see Errors.
Examples
hanzo agents builds listimport { Configuration, AgentsApi } from 'hanzoai';
const api = new AgentsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getAgentsBuilds();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AgentsApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AgentsApi(client).get_agents_builds()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.AgentsAPI.GetAgentsBuilds(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, agents_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = agents_api::get_agents_builds(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AgentsApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new AgentsApi(client).getAgentsBuilds();curl https://api.hanzo.ai/v1/agents/builds \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches agents through the agents tool, which names its 36 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_agent_conversations"
}
}
}'How is this guide?