Returns the argocd VersionMessage the dashboard SPA reads at bootstrap.
Returns the argocd VersionMessage the dashboard SPA reads at bootstrap.
GET /v1/deploy/version
| Address | https://api.hanzo.ai/v1/deploy/version |
| Method | GET |
| Operation | get_deploy_version |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the argocd VersionMessage the dashboard SPA reads at bootstrap. There is no argocd binary behind this plane — it is a projection over operator App CRs — so the fields say so rather than describing a build: Version names the projection, BuildDate is the moment this response was generated, and Compiler/Platform/GoVersion are the constants the SPA tolerates rather than facts about this process. Platform SuperAdmin only.
Request
GET /v1/deploy/version takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | versionMessage | ok |
200 body — 5 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
BuildDate | body | string | — | BuildDate is the time THIS RESPONSE was generated, in RFC 3339 — not a build timestamp. |
Compiler | body | string | — | Compiler is the constant "gc" the SPA expects; it is not read from this process. |
GoVersion | body | string | — | GoVersion is always empty. |
Platform | body | string | — | Platform is the constant "linux/amd64" the SPA expects; it is not this process's own GOOS/GOARCH. |
Version | body | string | — | Version names the projection, "hanzo-cd (projection)". |
Failure carries the platform error shape — see Errors.
Examples
hanzo deploy versionimport { Configuration, DeployApi } from 'hanzoai';
const api = new DeployApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getDeployVersion();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import DeployApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = DeployApi(client).get_deploy_version()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.DeployAPI.GetDeployVersion(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, deploy_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = deploy_api::get_deploy_version(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.DeployApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new DeployApi(client).getDeployVersion();curl https://api.hanzo.ai/v1/deploy/version \
-H "Authorization: Bearer $HANZO_API_KEY"Tool deploy, op get_deploy_version — 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": "deploy",
"arguments": {
"op": "get_deploy_version",
"input": {}
}
}
}'How is this guide?