use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &Client,
r: &DeviceLoginRequest,
) -> kc_sdk::Result <DeviceLoginStart> {
client.device_login_start(r).await
}
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.
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
Rust SDK
use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &Client,
) -> kc_sdk::Result <i32> {
client.email_verification_wait().await
}
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.
use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &Client,
) -> kc_sdk::Result <AuthCode> {
client.request_email_verification().await
}
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.
use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &Client,
code: &str,
) -> kc_sdk::Result <Me> {
client.verify_email(code).await
}
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.
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.
use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &Client,
ticket: &str,
) -> kc_sdk::Result <PasskeyRequestOptions> {
client.login_passkey_options(ticket).await
}
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
204
The response has no body.
Call example
Rust SDK
use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &mut Client,
) -> kc_sdk::Result <()> {
client.logout().await
}
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
204
The response has no body.
Call example
Rust SDK
use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &mut Client,
) -> kc_sdk::Result <()> {
client.logout_all().await
}
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.
use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &Client,
email: &str,
) -> kc_sdk::Result <AuthCode> {
client.request_password_reset(email).await
}
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.
use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;
async fn example(
client: &Client,
r: &Register,
) -> kc_sdk::Result <Me> {
client.register(r).await
}
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.
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.