API ReferenceAnalytics
Get MFA Adoption
Return MFA enrollment statistics for your tenant.
Endpoint
GET /v1/analytics:getMfaAdoptionBase URL: https://<Domain id="api"/>
Authentication: Bearer token with analytics:read scope.
Returns a snapshot of MFA enrollment counts by factor type: totp, webauthn (passkeys / security keys), sms, email, recovery_codes.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Scope to a single org |
Example
const res = await fetch(
"https://api-id.avnology.net/v1/analytics:getMfaAdoption",
{ headers: { Authorization: `Bearer ${process.env.AVNOLOGY_API_KEY}` } }
);
const mfa = await res.json
req, _ := http.NewRequest("GET",
"https://api-id.avnology.net/v1/analytics:getMfaAdoption", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv
import httpx, os
res = httpx.get(
"https://api-id.avnology.net/v1/analytics:getMfaAdoption",
headers={"Authorization": f"Bearer {os.environ['AVNOLOGY_API_KEY']}"},
const res = await fetch(
"https://api-id.avnology.net/v1/analytics:getMfaAdoption",
{ headers: { Authorization: `Bearer ${process.env.AVNOLOGY_API_KEY}` } }
);
const mfa = await res.json
req, _ := http.NewRequest("GET",
"https://api-id.avnology.net/v1/analytics:getMfaAdoption", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv
import httpx, os
res = httpx.get(
"https://api-id.avnology.net/v1/analytics:getMfaAdoption",
headers={"Authorization": f"Bearer {os.environ['AVNOLOGY_API_KEY']}"},
const res = await fetch(
"https://api-id.avnology.net/v1/analytics:getMfaAdoption",
{ headers: { Authorization: `Bearer ${process.env.AVNOLOGY_API_KEY}` } }
);
const mfa = await res.json
req, _ := http.NewRequest("GET",
"https://api-id.avnology.net/v1/analytics:getMfaAdoption", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv
import httpx, os
res = httpx.get(
"https://api-id.avnology.net/v1/analytics:getMfaAdoption",
headers={"Authorization": f"Bearer {os.environ['AVNOLOGY_API_KEY']}"},
const res = await fetch(
"https://api-id.avnology.net/v1/analytics:getMfaAdoption",
{ headers: { Authorization: `Bearer ${process.env.AVNOLOGY_API_KEY}` } }
);
const mfa = await res.json
req, _ := http.NewRequest("GET",
"https://api-id.avnology.net/v1/analytics:getMfaAdoption", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv
import httpx, os
res = httpx.get(
"https://api-id.avnology.net/v1/analytics:getMfaAdoption",
headers={"Authorization": f"Bearer {os.environ['AVNOLOGY_API_KEY']}"},
Response (200 OK)
{
"total_identities": 8412,
"enrolled_any": 5128,
"enrolled_any_rate": 0.6096,
"totp_count": 3417,
"webauthn_count": 2085,
"sms_count": 492,
"email_count": 1204,
"recovery_codes_count": 4801
}