Files
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

6.2 KiB

MeApi

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

Method HTTP request Description
analyticsChangeMyPassword POST /v1/analytics/me/password Change current user password
analyticsGetMe GET /v1/analytics/me Get current authenticated user info
analyticsGetMyTeams GET /v1/analytics/me/teams List teams for the current user
analyticsGetMyWebsites GET /v1/analytics/me/websites List websites for the current user

analyticsChangeMyPassword

AnalyticsUser analyticsChangeMyPassword(analyticsChangeMyPasswordRequest)

Change current user password

Example

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

val apiInstance = MeApi()
val analyticsChangeMyPasswordRequest : AnalyticsChangeMyPasswordRequest =  // AnalyticsChangeMyPasswordRequest | 
try {
    val result : AnalyticsUser = apiInstance.analyticsChangeMyPassword(analyticsChangeMyPasswordRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling MeApi#analyticsChangeMyPassword")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling MeApi#analyticsChangeMyPassword")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
analyticsChangeMyPasswordRequest AnalyticsChangeMyPasswordRequest

Return type

AnalyticsUser

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

analyticsGetMe

AnalyticsGetMe200Response analyticsGetMe()

Get current authenticated user info

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

AnalyticsGetMe200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

analyticsGetMyTeams

kotlin.collections.List<AnalyticsTeam> analyticsGetMyTeams(page, pageSize, orderBy, search)

List teams for the current user

Example

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

val apiInstance = MeApi()
val page : kotlin.Int = 56 // kotlin.Int | 
val pageSize : kotlin.Int = 56 // kotlin.Int | 
val orderBy : kotlin.String = orderBy_example // kotlin.String | 
val search : kotlin.String = search_example // kotlin.String | 
try {
    val result : kotlin.collections.List<AnalyticsTeam> = apiInstance.analyticsGetMyTeams(page, pageSize, orderBy, search)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling MeApi#analyticsGetMyTeams")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling MeApi#analyticsGetMyTeams")
    e.printStackTrace()
}

Parameters

| page | kotlin.Int| | [optional] | | pageSize | kotlin.Int| | [optional] | | orderBy | kotlin.String| | [optional] |

Name Type Description Notes
search kotlin.String [optional]

Return type

kotlin.collections.List<AnalyticsTeam>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

analyticsGetMyWebsites

kotlin.collections.List<AnalyticsWebsite> analyticsGetMyWebsites(page, pageSize, orderBy, search)

List websites for the current user

Example

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

val apiInstance = MeApi()
val page : kotlin.Int = 56 // kotlin.Int | 
val pageSize : kotlin.Int = 56 // kotlin.Int | 
val orderBy : kotlin.String = orderBy_example // kotlin.String | 
val search : kotlin.String = search_example // kotlin.String | 
try {
    val result : kotlin.collections.List<AnalyticsWebsite> = apiInstance.analyticsGetMyWebsites(page, pageSize, orderBy, search)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling MeApi#analyticsGetMyWebsites")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling MeApi#analyticsGetMyWebsites")
    e.printStackTrace()
}

Parameters

| page | kotlin.Int| | [optional] | | pageSize | kotlin.Int| | [optional] | | orderBy | kotlin.String| | [optional] |

Name Type Description Notes
search kotlin.String [optional]

Return type

kotlin.collections.List<AnalyticsWebsite>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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