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

2.8 KiB

BatchesApi

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

Method HTTP request Description
searchGetBatch GET /v1/search/batches/{batchUid} Get batch details
searchListBatches GET /v1/search/batches List task batches

searchGetBatch

SearchBatchView searchGetBatch(batchUid)

Get batch details

Example

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

val apiInstance = BatchesApi()
val batchUid : kotlin.Int = 56 // kotlin.Int | 
try {
    val result : SearchBatchView = apiInstance.searchGetBatch(batchUid)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BatchesApi#searchGetBatch")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BatchesApi#searchGetBatch")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
batchUid kotlin.Int

Return type

SearchBatchView

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

searchListBatches

SearchListBatches200Response searchListBatches(limit, from)

List task batches

Example

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

val apiInstance = BatchesApi()
val limit : kotlin.Int = 56 // kotlin.Int | 
val from : kotlin.Int = 56 // kotlin.Int | 
try {
    val result : SearchListBatches200Response = apiInstance.searchListBatches(limit, from)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BatchesApi#searchListBatches")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BatchesApi#searchListBatches")
    e.printStackTrace()
}

Parameters

| limit | kotlin.Int| | [optional] [default to 20] |

Name Type Description Notes
from kotlin.Int [optional]

Return type

SearchListBatches200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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