List agent

Returns which agent answers the caller org's transport: the default and every channel bound to another agent.

GET /v1/transport/agent

Addresshttps://api.hanzo.ai/v1/transport/agent
MethodGET
Operationget_transport_agent
AuthAuthorization: Bearer $HANZO_API_KEY

Returns which agent answers the caller org's transport: the default and every channel bound to another agent.

Request

1 field.

FieldInTypeRequiredDescription
transportquerystring—Transport is the transport: discord, github, linear, slack, teams, telegram or whatsapp.

Response

StatusBodyMeaning
200transport.transportAgentsok
defaultproblem-detailsrefused

200 body — 4 fields.

FieldInTypeAlwaysDescription
channelsbodyobject—Channels maps a platform channel id to the agent that answers there.
channels.*bodystring—
defaultbodystring—Default is the agent that answers any channel without a binding of its own; "hanzo" when the org has never set one.
transportbodystring—Transport is the transport these bindings are for.

Failure carries the platform error shape — see Errors.

Examples

hanzo transport agent get
import { Configuration, TransportApi } from 'hanzoai';

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

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

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

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

let result = transport_api::get_transport_agent(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TransportApi;

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

var result = new TransportApi(client).getTransportAgent();

The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →

curl https://api.hanzo.ai/v1/transport/agent \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool transport, op get_transport_agent — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "transport",
         "arguments": {
           "op": "get_transport_agent",
           "input": {}
         }
       }
     }'

Transport API · All Hanzo APIs · Interactive reference

Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.