curl --request POST \
--url https://api.quiva.ai/accounts/auth-with-password \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"password": "SecurePassword123"
}
'{
"data": {
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"auth_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"passkey_enabled": false,
"totp_enabled": false,
"account": {
"name": "acme",
"id": "acct_12345",
"display_name": "ACME Corporation",
"root_email": "admin@acme.com",
"subscription_status": "active"
}
}
}Authentication
Authenticate with password
Authenticates a user with email and password. Depending on the user, the response is one of: tokens (AuthResponse), an MFA token when TOTP is on and the device is not remembered (MfaRequiredResponse), or an account picker (AccountSelectResponse) when no account was given and the user belongs to several accounts. Send device_token from an earlier MFA sign-in to skip TOTP.
POST
/
accounts
/
auth-with-password
curl --request POST \
--url https://api.quiva.ai/accounts/auth-with-password \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"password": "SecurePassword123"
}
'{
"data": {
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"auth_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"passkey_enabled": false,
"totp_enabled": false,
"account": {
"name": "acme",
"id": "acct_12345",
"display_name": "ACME Corporation",
"root_email": "admin@acme.com",
"subscription_status": "active"
}
}
}Body
application/json
Authentication credentials