Overview
GET
/account/mfa/preferencemfaThe caller’s preferred 2FA method
List preference.
Auth: bearerAuth — calls run as the authenticated user.
Responses
200
Preference
- preferredMethod"sms" | "totp" | "webauthn" | null
Example
{
"preferredMethod": "sms"
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/account/mfa/preference" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/account/mfa/preference", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();