Skip to main content
Analytics is currently in private beta and available by request only.See Getting Started for access instructions.

What is Unkey Analytics?

Unkey Analytics provides a powerful SQL interface to query your API key verification data. Instead of building your own analytics pipeline, you can leverage Unkey’s built-in data warehouse to:
  • Build custom dashboards for internal teams or end-users
  • Power usage-based billing by querying verification counts per user/organization
  • Generate reports on API usage patterns, top users, and performance metrics
  • Monitor and alert on verification outcomes, rate limits, and errors

How it Works

Every key verification request is automatically stored and aggregated across multiple time-series tables: You can query these tables using standard SQL to:
  • Aggregate verification counts by time period
  • Group by API, user, or outcome
  • Filter by region, tags, or custom criteria
  • Calculate metrics for billing or monitoring

Available Data

Every verification event contains:
FieldTypeDescription
request_idStringUnique identifier for each request
timeInt64Unix millisecond timestamp
workspace_idStringYour workspace identifier (automatically filtered)
key_space_idStringYour KeySpace identifier (e.g., ks_1234). Find this in your API settings.
external_idStringYour user’s identifier (e.g., user_abc)
key_idStringIndividual key identifier
outcomeStringVerification result: VALID, RATE_LIMITED, INVALID, EXPIRED, DISABLED, INSUFFICIENT_PERMISSIONS, FORBIDDEN, USAGE_EXCEEDED
regionStringUnkey region that handled the verification
tagsArray(String)Custom tags added during verification
spent_creditsInt64Number of credits spent on this verification (0 if no credits were spent)

Next Steps