Skip to main content
GET
API analytics by API key

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Query Parameters

window
enum<string>
default:30d

Bounds the SQL scan range; today/7d/30d counts are always returned regardless of this value.

Available options:
24h,
7d,
30d
sort
enum<string>
default:count_30d

Which column to sort the keys by (descending).

Available options:
count_30d,
count_7d,
count_today,
last_used_at
limit
integer
default:50

Maximum number of key rows to return.

Required range: 1 <= x <= 200
includeRevoked
boolean
default:false

Include keys that have been revoked, rotated, or deleted. Send true/1 to enable; any other value (including false) is treated as false.

Response

The per-API-key usage attribution for the window.

data
object
meta
object