Skip to main content
POST
Python (SDK)

Authorizations

portal_session
string
cookie
required

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

application/json
startTime
integer<int64>
required

Start of the query window as a unix timestamp in milliseconds (inclusive).

Example:

1704067200000

endTime
integer<int64>
required

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.

Example:

1704672000000

keyId
string

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.

Example:

"key_1234abcd"

Response

Successfully retrieved verification analytics.

meta
object
required

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.

data
object[]
required

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.

Last modified on July 23, 2026