MMTMMT Docs

Get rate limit usage

Returns current rate limit quota status for your API key — how much weight you've used and how much remains in the current window.

GET
/api/v1/usage

Returns current rate limit quota status for your API key — how much weight you've used and how much remains in the current window.

Authorization

ApiKeyAuth
X-API-Key<token>

API key for authentication. Obtain from the MMT dashboard. Keep secret and use only from your backend; never expose in browser/mobile clients.

In: header

Query Parameters

format?string

Response format. Defaults to json. Set to cbor for binary CBOR encoding.

Value in"json" | "cbor"

Response Body

application/json

application/json

curl -X GET "https://eu-central-1.mmt.gg/api/v1/usage"
{
  "limit": 0,
  "remaining": 0,
  "used": 0,
  "reset": 0,
  "window_seconds": 0
}
{
  "error": {
    "code": "INVALID_PARAMS",
    "message": "Invalid request parameters",
    "details": {}
  }
}