Build info
OK
application/json- response
agent_api_version?stringAgentAPIVersion is the current version of the Agent API (back versions MAY still be supported).
dashboard_url?stringDashboardURL is the URL to hit the deployment's dashboard. For external workspace proxies, this is the coderd they are connected to.
deployment_id?stringDeploymentID is the unique identifier for this deployment.
external_url?stringExternalURL references the current Coder version. For production builds, this will link directly to a release. For development builds, this will link to a commit.
oauth2_provider?booleanOAuth2Provider reports whether the OAuth 2.1 authorization server is enabled. The dashboard uses it to show or hide OAuth2 navigation.
provisioner_api_version?stringProvisionerAPIVersion is the current version of the Provisioner API
telemetry?booleanTelemetry is a boolean that indicates whether telemetry is enabled.
upgrade_message?stringUpgradeMessage is the message displayed to users when an outdated client is detected.
version?stringVersion returns the semantic version of the build.
webpush_public_key?stringWebPushPublicKey is the public key for push notifications via Web Push.
workspace_proxy?booleanThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/buildinfo"const { CODER_URL } = process.env;const url = `${CODER_URL}/api/v2/buildinfo`;const response = await fetch(url, { method: "GET",});console.log(response.status, await response.text());import osimport requestsurl = os.environ["CODER_URL"] + "/api/v2/buildinfo"response = requests.get( url,)print(response.status_code, response.text)package mainimport ( "fmt" "io" "net/http" "os")func main() { url := os.Getenv("CODER_URL") + "/api/v2/buildinfo" req, err := http.NewRequest(http.MethodGet, url, nil) if err != nil { panic(err) } resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close() out, err := io.ReadAll(resp.Body) if err != nil { panic(err) } fmt.Println(resp.Status, string(out))}{ "agent_api_version": "string", "dashboard_url": "string", "deployment_id": "string", "external_url": "string", "oauth2_provider": true, "provisioner_api_version": "string", "telemetry": true, "upgrade_message": "string", "version": "string", "webpush_public_key": "string", "workspace_proxy": true}