Usage Statistics

Retrieve current usage statistics for the authenticated user.

GEThttps://api.safecomms.dev/usage

This endpoint allows you to programmatically check your current usage, remaining quota, and rate limits. It is useful for monitoring your consumption and implementing back-off strategies if you are nearing your limits.

Response Object

FieldTypeDescription
tierstringYour current subscription tier (e.g., 'Free', 'Starter', 'Business').
rateLimitnumberThe maximum number of requests allowed per minute.
tokenLimitnumberThe total number of tokens allocated for the current billing cycle.
tokensUsednumberThe number of tokens consumed so far in the current billing cycle.
remainingTokensnumberThe number of tokens available for use (tokenLimit - tokensUsed).
{
  "tier": "Starter",
  "rateLimit": 100,
  "tokenLimit": 20000,
  "tokensUsed": 15420,
  "remainingTokens": 4580
}