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 their email and password. If MFA is enabled, returns an MFA token that must be used with a subsequent authentication request.
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
Response
Authentication successful or MFA required
- Option 1
- Option 2
Show child attributes
Show child attributes