Skip to main content

Account Endpoints

Read-only endpoints for account-level state. Use these when you need quota or plan information without making a creation call.

Get strategy quota

Return current strategy creation quota over the rolling 30-day window. This endpoint is a pure read — it does not consume quota.
GET /api/account/quota

Response

{
  "strategy_quota": {
    "used": 12,
    "limit": 100,
    "tier": "pro",
    "reset_at": "2026-06-14T09:21:00Z"
  }
}
FieldTypeDescription
strategy_quota.usedintegerStrategies counted in the rolling 30-day window (active + created-then-deleted).
strategy_quota.limitintegerPlan limit. -1 indicates an unlimited (enterprise) plan.
strategy_quota.tierstringfree | hobby | pro | enterprise.
strategy_quota.reset_atstring | nullISO 8601 UTC timestamp of when the next quota slot frees (oldest counted strategy + 30 days). Omitted when the plan is unlimited or when there is no usage in the window.

Example

curl https://api.meter.sh/api/account/quota \
  -H "Authorization: Bearer sk_live_..."
The same numbers are also returned as response headers (X-Strategy-Quota-Used, -Limit, -Reset, -Tier) on every strategy-creation call. See Strategy quota headers for the header-based variant — convenient when you’d already be making a creation request and want to avoid an extra round-trip.

Error responses

StatusDescription
401Invalid or missing API key
500Internal server error
See REST API Errors for detailed error handling.

Next steps

Strategy Endpoints

Create strategies (and see quota headers on the response)

Strategies Concept

Learn about strategies and quota

Need help?

Email me at mckinnon@meter.sh