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

TracesApi

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

Method HTTP request Description
consoleDeleteTrace DELETE /v1/console/traces/{traceId} Delete a specific trace
consoleDeleteTraces DELETE /v1/console/traces Delete multiple traces
consoleGetTrace GET /v1/console/traces/{traceId} Get a specific trace with full details
consoleListTraces GET /v1/console/traces Get list of traces

consoleDeleteTrace

ConsoleDeleteDatasetItem200Response consoleDeleteTrace(traceId)

Delete a specific trace

Example

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

val apiInstance = TracesApi()
val traceId : kotlin.String = traceId_example // kotlin.String | 
try {
    val result : ConsoleDeleteDatasetItem200Response = apiInstance.consoleDeleteTrace(traceId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling TracesApi#consoleDeleteTrace")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling TracesApi#consoleDeleteTrace")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
traceId kotlin.String

Return type

ConsoleDeleteDatasetItem200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

consoleDeleteTraces

ConsoleDeleteDatasetItem200Response consoleDeleteTraces(consoleDeleteTracesRequest)

Delete multiple traces

Example

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

val apiInstance = TracesApi()
val consoleDeleteTracesRequest : ConsoleDeleteTracesRequest =  // ConsoleDeleteTracesRequest | 
try {
    val result : ConsoleDeleteDatasetItem200Response = apiInstance.consoleDeleteTraces(consoleDeleteTracesRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling TracesApi#consoleDeleteTraces")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling TracesApi#consoleDeleteTraces")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
consoleDeleteTracesRequest ConsoleDeleteTracesRequest

Return type

ConsoleDeleteDatasetItem200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

consoleGetTrace

ConsoleTraceWithFullDetails consoleGetTrace(traceId)

Get a specific trace with full details

Example

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

val apiInstance = TracesApi()
val traceId : kotlin.String = traceId_example // kotlin.String | 
try {
    val result : ConsoleTraceWithFullDetails = apiInstance.consoleGetTrace(traceId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling TracesApi#consoleGetTrace")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling TracesApi#consoleGetTrace")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
traceId kotlin.String

Return type

ConsoleTraceWithFullDetails

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

consoleListTraces

ConsoleListTraces200Response consoleListTraces(page, limit, userId, name, sessionId, fromTimestamp, toTimestamp, orderBy, tags, version, release, environment, filter)

Get list of traces

Example

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

val apiInstance = TracesApi()
val page : kotlin.Int = 56 // kotlin.Int | 
val limit : kotlin.Int = 56 // kotlin.Int | 
val userId : kotlin.String = userId_example // kotlin.String | 
val name : kotlin.String = name_example // kotlin.String | 
val sessionId : kotlin.String = sessionId_example // kotlin.String | 
val fromTimestamp : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | 
val toTimestamp : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | 
val orderBy : kotlin.String = orderBy_example // kotlin.String | Format: field.asc|desc (e.g., timestamp.desc)
val tags : kotlin.collections.List<kotlin.String> =  // kotlin.collections.List<kotlin.String> | 
val version : kotlin.String = version_example // kotlin.String | 
val release : kotlin.String = release_example // kotlin.String | 
val environment : kotlin.collections.List<kotlin.String> =  // kotlin.collections.List<kotlin.String> | 
val filter : kotlin.String = filter_example // kotlin.String | JSON array of filter conditions (overrides other filters when provided)
try {
    val result : ConsoleListTraces200Response = apiInstance.consoleListTraces(page, limit, userId, name, sessionId, fromTimestamp, toTimestamp, orderBy, tags, version, release, environment, filter)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling TracesApi#consoleListTraces")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling TracesApi#consoleListTraces")
    e.printStackTrace()
}

Parameters

| page | kotlin.Int| | [optional] [default to 1] | | limit | kotlin.Int| | [optional] [default to 50] | | userId | kotlin.String| | [optional] | | name | kotlin.String| | [optional] | | sessionId | kotlin.String| | [optional] | | fromTimestamp | java.time.OffsetDateTime| | [optional] | | toTimestamp | java.time.OffsetDateTime| | [optional] | | orderBy | kotlin.String| Format: field.asc|desc (e.g., timestamp.desc) | [optional] | | tags | kotlin.collections.List<kotlin.String>| | [optional] | | version | kotlin.String| | [optional] | | release | kotlin.String| | [optional] | | environment | kotlin.collections.List<kotlin.String>| | [optional] |

Name Type Description Notes
filter kotlin.String JSON array of filter conditions (overrides other filters when provided) [optional]

Return type

ConsoleListTraces200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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