Skip to main content
GET
/
organizations
/
{organizationId}
/
api-keys
/
stats
Get API key statistics
curl --request GET \
  --url http://sandbox.mintlify.com/organizations/{organizationId}/api-keys/stats \
  --header 'Authorization: Bearer <token>'
Retrieves usage statistics for all API keys in an organization.

Permissions

User must be a member of the organization.

Statistics Included

  • Total number of API keys
  • Active vs. revoked keys
  • Total API requests across all keys
  • Rate limit hits and errors
  • Most recently used keys

Example

curl -X GET http://localhost:3001/api/organizations/{organizationId}/api-keys/stats \
  -H "Authorization: Bearer <token>"

Use Cases

  • Monitor API usage across the organization
  • Identify unused or inactive keys
  • Track rate limit consumption
  • Audit API access patterns

Authorizations

Authorization
string
header
required

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

Path Parameters

organizationId
string
required

Response

Statistics retrieved successfully