Get portal verifications
Changed onReturn 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 outcome-broken-out counts. Bucket granularity is chosen automatically from the window size.
The response carries one zero-filled series per key the end user has verifications for, so a client can render both a per-key table and an account-wide chart from one call by summing them. Pass keyId to narrow the window to a single key.
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/portal.getVerifications
- AuthAPI key in cookie portal_session
Request body
Example request
{
"startTime": 1704067200000,
"endTime": 1704672000000,
"keyId": "key_1234abcd"
}Response
Successfully retrieved verification analytics.
Example response
{
"meta": {
"requestId": "req_123"
},
"bucketMillis": 60000,
"keys": [
{
"keyId": "key_1234abcd",
"data": [
{
"time": 1704067200000
}
]
}
]
}Changes
- breaking
removed the required property
from the response with the status - info
added the non-success response with the status
- info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
endpoint added
- info