Usage and outcome metrics
One report for billing and reporting: how often each API endpoint was called and how it answered, how your verification sessions ended for each check type, relying-party service and intended use, and the billable units recorded for you. Available as JSON from the API, as a CSV file, and on the dashboard's Analytics page.
Request
curl "https://compliance.nexiel.io/v1/verify/metrics?from=2026-10-01&to=2026-11-01&environment=production" \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN"fromandto: UTC dates,toexclusive. The default window is the last 90 days, and a window can span at most 366 days.environment:sandboxfor a test key orproductionfor a live key. It defaults to your key's own environment, and asking for the other one is refused withoperation_not_allowed_in_environment. See test mode and live mode.scope:self(the default) for your own organization,childrenfor the client organizations that delegatedmetrics:readorbilling:readto you, orallfor both. See serving client organizations.childOrganizationId: only that one client organization.
Send the access token of a Verify test or live key (see authentication). The same query parameters work for the CSV export.
What the report contains
The report has a totals object and one entry per organization in scope, each with:
endpoints: one row per route and method, with request, success and failure counts, counts by HTTP status and by error code, and latency (average, maximum, and the histogram bucket holding the median and the 95th percentile: 100, 250, 500, 1000 or 2500 ms). Routes are reported as templates such as/v1/verify/sessions/:sessionId, never as concrete URLs.verifications: one row per check type, relying-party service and intended use, with sessions completed, failed and expired, failure reasons, the credential format mix (dc+sd-jwtormso_mdoc), the flow mix (same_device,cross_device,dc_api) and how long sessions took. The intended use is the one named by the registration certificate each request carried.billableUsage: billable units by product event and environment, the figures metered billing is based on.
{
"window": { "from": "2026-10-01T00:00:00.000Z", "to": "2026-11-01T00:00:00.000Z" },
"environment": "production",
"totals": { "requests": 1840, "failedRequests": 22, "sessions": 905, "completedSessions": 861, "billableUnits": 861 },
"tenants": [
{
"organizationId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"clientId": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
"legalName": "Example Identity Services Ltd",
"relationship": "self",
"totals": { "requests": 1840, "failedRequests": 22, "sessions": 905, "completedSessions": 861, "billableUnits": 861 },
"endpoints": [
{
"environment": "production",
"service": "verify",
"method": "POST",
"route": "/v1/verify/sessions",
"requests": 910,
"succeeded": 905,
"failed": 5,
"byStatus": { "200": 905, "429": 5 },
"byErrorCode": { "rate_limit_exceeded": 5 },
"latency": { "averageMs": 142, "maxMs": 611, "p50UpperBoundMs": 250, "p95UpperBoundMs": 500 }
}
],
"verifications": [
{
"environment": "production",
"checkType": "age-verification",
"rpServiceId": "0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a",
"intendedUseId": "age-check-checkout",
"sessions": 905,
"completed": 861,
"failed": 12,
"expired": 32,
"failureReasons": { "wallet_reported_error": 9, "issuer_not_trusted": 3 },
"credentialFormats": { "dc+sd-jwt": 640, "mso_mdoc": 221 },
"credentialMechanisms": { "pid_sd_jwt_vc": 640, "av_mdoc": 221 },
"flows": { "cross_device": 702, "dc_api": 203 },
"responseModes": { "direct_post.jwt": 702, "dc_api.jwt": 203 },
"durationMs": { "average": 23140, "max": 598000 }
}
],
"billableUsage": [{ "service": "verify", "eventType": "age.check", "mode": "production", "units": 861 }]
}
]
}What is not reported
- No personal data: no names, dates of birth, claim values, session identifiers or concrete URLs. Every figure is an aggregate.
- No wallet brand. Wallets do not identify themselves to relying parties, so the report shows the credential format and flow a wallet used instead.
- Calls made without your access token, such as a wallet posting its response or a browser loading a hosted page, are not attributed to anyone and are not counted as endpoint requests. The sessions they complete are still counted under
verifications.
CSV export
GET /v1/verify/metrics.csv returns the same report as one CSV table with a section column (endpoint, verification, billable_usage), ready for a billing system or a spreadsheet. Breakdowns such as status codes and failure reasons are in a single breakdown column. Any cell a spreadsheet would read as a formula is prefixed with an apostrophe.
curl "https://compliance.nexiel.io/v1/verify/metrics.csv?scope=all" \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" -o nexiel-metrics.csvconst report = await verify.metrics.get({ scope: 'all', environment: 'production' });
const csv = await verify.metrics.exportCsv({ scope: 'all' });report = verify.metrics.get(scope="all", environment="production")
csv = verify.metrics.export_csv(scope="all")