Files
sdk/docs/BindingsApi.md
zeekayandHanzo Dev b55332704a feat: Hanzo Cloud SDK for Kotlin (generated from OpenAPI v8.0.0)
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and
Android. Generated with openapi-generator kotlin (library=jvm-okhttp4,
useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 07:10:32 -07:00

5.5 KiB

BindingsApi

All URIs are relative to https://api.hanzo.ai

Method HTTP request Description
visorBindMachineAgent POST /v1/machines/{id}/bind-agent Bind a cloud Agent to a machine
visorGetMachineAgentBinding GET /v1/machines/{id}/agent-binding Get a machine's agent binding
visorListAgentBindings GET /v1/agent-bindings List the org's agent bindings
visorUnbindMachineAgent DELETE /v1/machines/{id}/agent-binding Unbind the agent from a machine

visorBindMachineAgent

VisorAgentBinding visorBindMachineAgent(id, visorBindAgentRequest)

Bind a cloud Agent to a machine

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = BindingsApi()
val id : kotlin.String = id_example // kotlin.String | 
val visorBindAgentRequest : VisorBindAgentRequest =  // VisorBindAgentRequest | 
try {
    val result : VisorAgentBinding = apiInstance.visorBindMachineAgent(id, visorBindAgentRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BindingsApi#visorBindMachineAgent")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BindingsApi#visorBindMachineAgent")
    e.printStackTrace()
}

Parameters

| id | kotlin.String| | |

Name Type Description Notes
visorBindAgentRequest VisorBindAgentRequest

Return type

VisorAgentBinding

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

visorGetMachineAgentBinding

VisorAgentBinding visorGetMachineAgentBinding(id)

Get a machine's agent binding

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = BindingsApi()
val id : kotlin.String = id_example // kotlin.String | 
try {
    val result : VisorAgentBinding = apiInstance.visorGetMachineAgentBinding(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BindingsApi#visorGetMachineAgentBinding")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BindingsApi#visorGetMachineAgentBinding")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String

Return type

VisorAgentBinding

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

visorListAgentBindings

VisorListAgentBindings200Response visorListAgentBindings()

List the org's agent bindings

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = BindingsApi()
try {
    val result : VisorListAgentBindings200Response = apiInstance.visorListAgentBindings()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BindingsApi#visorListAgentBindings")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BindingsApi#visorListAgentBindings")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

VisorListAgentBindings200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

visorUnbindMachineAgent

visorUnbindMachineAgent(id)

Unbind the agent from a machine

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = BindingsApi()
val id : kotlin.String = id_example // kotlin.String | 
try {
    apiInstance.visorUnbindMachineAgent(id)
} catch (e: ClientException) {
    println("4xx response calling BindingsApi#visorUnbindMachineAgent")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BindingsApi#visorUnbindMachineAgent")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String

Return type

null (empty response body)

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json