List destination

Reports every destination this deployment can forward to, each with the caller org's connection state: whether it is connected, whether it is enabled, whether a credential resolves right now, and the config fields the console renders for it.

GET /v1/destination

Addresshttps://api.hanzo.ai/v1/destination
MethodGET
Operationget_destination
AuthAuthorization: Bearer $HANZO_API_KEY

Reports every destination this deployment can forward to, each with the caller org's connection state: whether it is connected, whether it is enabled, whether a credential resolves right now, and the config fields the console renders for it.

Request

GET /v1/destination takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200destination.destinationListok
defaultproblem-detailsrefused

200 body — 17 fields.

FieldInTypeAlwaysDescription
destinationsbodydestination.DestinationStatus[]—Destinations is one card per registered platform, in slug order.
destinations[].accountbodystring—Account is the operator's own label for the connected account, as supplied on connect.
destinations[].categorybodystring—groups the card: Analytics | Advertising
destinations[].configbodyobject—Config is the org's stored NON-SECRET configuration — the measurement/pixel ids keyed by DestinationField.Key.
destinations[].config.*bodystring—
destinations[].connectedbodyboolean—Connected is true when this org has a stored row for the platform — it has been configured here at least once.
destinations[].enabledbodyboolean—Enabled is whether the fan-out forwards to this destination.
destinations[].fieldsbodydestination.DestinationField[]—Fields are the non-secret inputs this platform needs, which the console card renders and the connect body fills.
destinations[].fields[].examplebodystring—a sample value of the right shape ("G-XXXXXXX"), when one helps
destinations[].fields[].keybodystring—the camelCase key on both the connect body and the stored config
destinations[].fields[].labelbodystring—human label for the console card's input
destinations[].fields[].requiredbodyboolean—when true, a connect that leaves it empty is refused 400
destinations[].livebodyboolean—Live is whether a credential resolves RIGHT NOW: a KMS-sealed secret for this org, else the integrations connection named by the platform's Fallback, else no credential needed at all (a public-ingest sink like Analytics).
destinations[].namebodystring—the platform's display name ("Google Analytics 4")
destinations[].pixelbodyboolean—Pixel is whether the hosted tag can inject a browser pixel for this platform, so a console offers a per-SITE pixel input for exactly these.
destinations[].platformbodystring—the platform slug, and the path segment every route addresses it by
destinations[].secretsbodystring[]—Secrets are the KMS secret NAMES this platform custodies for the org — names only, never values.

Failure carries the platform error shape — see Errors.

Examples

hanzo destination list
import { Configuration, DestinationApi } from 'hanzoai';

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

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

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

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

let result = destination_api::get_destination(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.DestinationApi;

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

var result = new DestinationApi(client).getDestination();
curl https://api.hanzo.ai/v1/destination \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP reaches destination through the destination tool, which names its 4 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_destinations"
         }
       }
     }'

Destination API · All Hanzo APIs · Interactive reference

Was this page useful?