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

15 KiB

MFAApi

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

Method HTTP request Description
iamApiControllerDeleteMfa DELETE /v1/iam/mfa/s/{id} Api Controller Delete Mfa
iamApiControllerGetUserVerifications GET /v1/iam/user-payments Api Controller Get User Verifications
iamApiControllerGetVerification GET /v1/iam/payments/{id} Api Controller Get Verification
iamApiControllerGetVerifications GET /v1/iam/payments Api Controller Get Verifications
iamApiControllerMfaSetupEnable POST /v1/iam/mfa/setup/enable Api Controller Mfa Setup Enable
iamApiControllerMfaSetupInitiate POST /v1/iam/mfa/setup/initiate Api Controller Mfa Setup Initiate
iamApiControllerMfaSetupVerify POST /v1/iam/mfa/setup/verify Api Controller Mfa Setup Verify
iamApiControllerSendVerificationCode POST /v1/iam/auth/verification-code/send Api Controller Send Verification Code
iamApiControllerSetPreferredMfa POST /v1/iam/mfa/preferred Api Controller Set Preferred Mfa
iamApiControllerVerifyCaptcha POST /v1/iam/captcha/verify Api Controller Verify Captcha
iamApiControllerVerifyCode POST /v1/iam/auth/verification-code/verify Api Controller Verify Code

iamApiControllerDeleteMfa

IamControllersResponse iamApiControllerDeleteMfa(id)

Api Controller Delete Mfa

Delete MFA

Example

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

val apiInstance = MFAApi()
val id : kotlin.String = id_example // kotlin.String | Resource identifier (owner/name)
try {
    val result : IamControllersResponse = apiInstance.iamApiControllerDeleteMfa(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling MFAApi#iamApiControllerDeleteMfa")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling MFAApi#iamApiControllerDeleteMfa")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String Resource identifier (owner/name)

Return type

IamControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerGetUserVerifications

kotlin.collections.List<kotlin.Any> iamApiControllerGetUserVerifications(owner, organization, user)

Api Controller Get User Verifications

get payments for a user

Example

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

val apiInstance = MFAApi()
val owner : kotlin.String = owner_example // kotlin.String | The owner of payments
val organization : kotlin.String = organization_example // kotlin.String | The organization of the user
val user : kotlin.String = user_example // kotlin.String | The username of the user
try {
    val result : kotlin.collections.List<kotlin.Any> = apiInstance.iamApiControllerGetUserVerifications(owner, organization, user)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling MFAApi#iamApiControllerGetUserVerifications")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling MFAApi#iamApiControllerGetUserVerifications")
    e.printStackTrace()
}

Parameters

| owner | kotlin.String| The owner of payments | | | organization | kotlin.String| The organization of the user | |

Name Type Description Notes
user kotlin.String The username of the user

Return type

kotlin.collections.List<kotlin.Any>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerGetVerification

kotlin.Any iamApiControllerGetVerification(id)

Api Controller Get Verification

get payment

Example

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

val apiInstance = MFAApi()
val id : kotlin.String = id_example // kotlin.String | The id ( owner/name ) of the payment
try {
    val result : kotlin.Any = apiInstance.iamApiControllerGetVerification(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling MFAApi#iamApiControllerGetVerification")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling MFAApi#iamApiControllerGetVerification")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String The id ( owner/name ) of the payment

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerGetVerifications

kotlin.collections.List<kotlin.Any> iamApiControllerGetVerifications(owner)

Api Controller Get Verifications

get payments

Example

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

val apiInstance = MFAApi()
val owner : kotlin.String = owner_example // kotlin.String | The owner of payments
try {
    val result : kotlin.collections.List<kotlin.Any> = apiInstance.iamApiControllerGetVerifications(owner)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling MFAApi#iamApiControllerGetVerifications")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling MFAApi#iamApiControllerGetVerifications")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
owner kotlin.String The owner of payments

Return type

kotlin.collections.List<kotlin.Any>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerMfaSetupEnable

IamControllersResponse iamApiControllerMfaSetupEnable()

Api Controller Mfa Setup Enable

enable totp

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

IamControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerMfaSetupInitiate

IamControllersResponse iamApiControllerMfaSetupInitiate()

Api Controller Mfa Setup Initiate

setup MFA

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

IamControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerMfaSetupVerify

IamControllersResponse iamApiControllerMfaSetupVerify()

Api Controller Mfa Setup Verify

setup verify totp

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

IamControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerSendVerificationCode

IamObjectUserinfo iamApiControllerSendVerificationCode()

Api Controller Send Verification Code

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

IamObjectUserinfo

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerSetPreferredMfa

IamControllersResponse iamApiControllerSetPreferredMfa()

Api Controller Set Preferred Mfa

Set specific Mfa Preferred

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

IamControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerVerifyCaptcha

IamObjectUserinfo iamApiControllerVerifyCaptcha()

Api Controller Verify Captcha

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

IamObjectUserinfo

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerVerifyCode

IamObjectUserinfo iamApiControllerVerifyCode()

Api Controller Verify Code

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

IamObjectUserinfo

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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