Skip to main content
GET
Get User Statistics

Endpoint

Overview

Retrieves aggregate user statistics including total users, premium users, and free users. Requires admin access via DROP service accessFlags or INTERNAL_SECRET.

Request

Requires authentication via Bearer token (with admin privileges) or x-internal-secret header.

Response

number
Total number of users in the system
number
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: true
  • accessFlags.nullDropTeamRole: "founder" or "dev"

Internal Secret

Alternatively, use x-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 isPremium flag
  • Free users calculation: totalUsers - premiumUsers
  • Statistics are real-time (not cached)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

User statistics

totalUsers
integer
premiumUsers
integer
freeUsers
integer