List builds

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/agent/builds

Addresshttps://api.hanzo.ai/v1/agent/builds
MethodGET
Operationget_agent_builds
AuthAuthorization: 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.

FieldInTypeRequiredDescription
limitqueryinteger—Limit caps the page.

Response

StatusBodyMeaning
200agent.buildListok
defaultproblem-detailsrefused

200 body — 11 fields.

FieldInTypeAlwaysDescription
buildsbodyagent.buildSummary[]—Builds is every published build, most recently updated first.
builds[].agentbodystring—Agent is the label the surface that did the work calls itself by.
builds[].endedAtbodystring—EndedAt is when it finished, same format.
builds[].orgbodystring—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[].projectbodystring—Project is the product's slug, the second half of that address.
builds[].repobodystring—Repo is the repository the work was done in, as the session reported it.
builds[].sessionbodystring—Session is the agent session behind the build, and the value its commits name in their Hanzo-Session: trailer.
builds[].startedAtbodystring—StartedAt is when the session opened, RFC 3339 in UTC.
builds[].statusbodystring—Status is the session's own: running, paused, done or error — so a card can show a build still being written.
builds[].titlebodystring—Title is the human line for the card.
builds[].turnsbodyinteger (int64)—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 agent builds list
import { Configuration, AgentApi } from 'hanzoai';

const api = new AgentApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getAgentBuilds();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AgentApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AgentApi(client).get_agent_builds()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.AgentAPI.GetAgentBuilds(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, agent_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = agent_api::get_agent_builds(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AgentApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new AgentApi(client).getAgentBuilds();
curl https://api.hanzo.ai/v1/agent/builds \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP reaches agent through the agent tool, which names its 38 operations with its own verbs — this one among them, under a name only MCP 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_agents"
         }
       }
     }'

Agent API · All Hanzo APIs · Interactive reference

Was this page useful?