Admin
Admin Statistics
Get user statistics (admin only)
GET
Get User Statistics
Endpoint
Overview
Retrieves aggregate user statistics including total users, premium users, and free users. Requires admin access via DROP serviceaccessFlags or INTERNAL_SECRET.
Request
Requires authentication via Bearer token (with admin privileges) orx-internal-secret header.
Response
number
Total number of users in the system
Number of users with premium DROP service access
number
Number of users without premium DROP service access (totalUsers - premiumUsers)
Authentication
Admin Access via DROP Service
User must have DROP service entitlement with:accessFlags.isNullDropTeam:trueaccessFlags.nullDropTeamRole:"founder"or"dev"
Internal Secret
Alternatively, usex-internal-secret header with INTERNAL_SECRET value.
Implementation Details
Code Reference
Status Codes
OK
Success
Unauthorized
Missing or invalid authentication
Forbidden
Admin access required
Example Request
Example Response
Notes
- Premium users are counted based on DROP service
isPremiumflag - Free users calculation:
totalUsers - premiumUsers - Statistics are real-time (not cached)
Get User Statistics