Files
sdk/docs/VectorApi.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

7.3 KiB

VectorApi

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

Method HTTP request Description
productGetVectorStats GET /v1/vector/stats Get aggregate vector statistics
provisioningCreateVector POST /v1/vector Provision a vector resource
provisioningDeleteVector DELETE /v1/vector/{name} Deprovision a vector resource
provisioningGetVector GET /v1/vector/{name} Get one vector resource
provisioningListVector GET /v1/vector List vector resources for the caller's org

productGetVectorStats

ProductVectorStats productGetVectorStats()

Get aggregate vector statistics

Returns totals aggregated across all Qdrant collections: collection count, vector count, and storage bytes. If the upstream is unreachable, returns HTTP 200 with all counters zeroed. Authenticated with the opaque vector service key.

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

ProductVectorStats

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

provisioningCreateVector

ProvisioningCreateResponse provisioningCreateVector(provisioningCreateRequest)

Provision a vector resource

Example

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

val apiInstance = VectorApi()
val provisioningCreateRequest : ProvisioningCreateRequest =  // ProvisioningCreateRequest | 
try {
    val result : ProvisioningCreateResponse = apiInstance.provisioningCreateVector(provisioningCreateRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling VectorApi#provisioningCreateVector")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling VectorApi#provisioningCreateVector")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
provisioningCreateRequest ProvisioningCreateRequest

Return type

ProvisioningCreateResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

provisioningDeleteVector

provisioningDeleteVector(name)

Deprovision a vector resource

Example

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

val apiInstance = VectorApi()
val name : kotlin.String = name_example // kotlin.String | The user-supplied resource name (slug). Lowercased and trimmed server-side; must match `^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$`. 
try {
    apiInstance.provisioningDeleteVector(name)
} catch (e: ClientException) {
    println("4xx response calling VectorApi#provisioningDeleteVector")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling VectorApi#provisioningDeleteVector")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
name kotlin.String The user-supplied resource name (slug). Lowercased and trimmed server-side; must match `^a-z0-9?$`.

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

provisioningGetVector

ProvisioningGetResponse provisioningGetVector(name)

Get one vector resource

Example

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

val apiInstance = VectorApi()
val name : kotlin.String = name_example // kotlin.String | The user-supplied resource name (slug). Lowercased and trimmed server-side; must match `^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$`. 
try {
    val result : ProvisioningGetResponse = apiInstance.provisioningGetVector(name)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling VectorApi#provisioningGetVector")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling VectorApi#provisioningGetVector")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
name kotlin.String The user-supplied resource name (slug). Lowercased and trimmed server-side; must match `^a-z0-9?$`.

Return type

ProvisioningGetResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

provisioningListVector

kotlin.collections.List<ProvisioningListItem> provisioningListVector()

List vector resources for the caller's org

Example

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

val apiInstance = VectorApi()
try {
    val result : kotlin.collections.List<ProvisioningListItem> = apiInstance.provisioningListVector()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling VectorApi#provisioningListVector")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling VectorApi#provisioningListVector")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<ProvisioningListItem>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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