Get portal verifications
Return a verification analytics timeseries for the authenticated portal session’s end user.
Authenticates only with a portal session cookie and always restricts results
to verification events attributed to the session’s external identity. Unlike
analytics.getVerifications, this endpoint takes a fixed time window (no
query language) and returns a zero-filled, outcome-broken-out timeseries.
Bucket granularity is chosen automatically from the window size.
Authorizations
Browser session cookie for the Customer Portal. Set by portal.exchangeSession
and sent automatically by the browser on portal.* requests. Portal sessions
are scoped to a single end user (external identity) and can only access the
portal.* routes.
Body
Start of the query window as a unix timestamp in milliseconds (inclusive).
1704067200000
End of the query window as a unix timestamp in milliseconds (exclusive). Bucket granularity (minute, hour, or day) is chosen automatically from the window size.
1704672000000
Optional. Restrict results to a single key. The key must belong to the authenticated end user; results are always scoped to the session identity regardless of this value.
"key_1234abcd"
Response
Successfully retrieved verification analytics.
Metadata object included in every API response. This provides context about the request and is essential for debugging, audit trails, and support inquiries. The requestId is particularly important when troubleshooting issues with the Unkey support team.
Zero-filled verification timeseries for the authenticated end user, ordered by time ascending. Buckets with no verifications are present with zero counts so the series is contiguous across the requested window.