body := json.RawMessage("{\n \"client\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_device", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
body := json.RawMessage("{\n \"device_code\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_device_poll", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Request body
No request body.
Successful response
200 · application/json
integer · i32
Call example
Go SDK
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_auth_email_verification", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_email_verification", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
mail_failed
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"code\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_email_verification_confirm", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
body := json.RawMessage("{\n \"email\": \"[email protected]\",\n \"password\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_login", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
body := json.RawMessage("{\n \"ticket\": \"example\",\n \"code\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_login_mfa", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
mfa_locked
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
body := json.RawMessage("{\n \"ticket\": \"example\",\n \"credential_id\": \"example\",\n \"client_data_json\": \"example\",\n \"authenticator_data\": \"example\",\n \"signature\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_login_passkey", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
body := json.RawMessage("{\n \"ticket\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_login_passkey_options", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
body := json.RawMessage("{\n \"email\": \"[email protected]\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_password_reset", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
body := json.RawMessage("{\n \"email\": \"[email protected]\",\n \"name\": \"example\",\n \"password\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_register", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
bad_email
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
body := json.RawMessage("{\n \"transfer\": true,\n \"approve_device\": true\n}")
options := kc.Options{
Params: map[string]string{},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_auth_session_activate", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.