---
title: "Get the quota state of an api key"
method: GET
path: "/api/groups/{groupId}/apikeys/{clientId}/quotas"
tags: ["apikeys"]
---

# Get the quota state of an api key

`GET /api/groups/{groupId}/apikeys/{clientId}/quotas`

Get the quota state of an api key

## Path parameters

- `groupId` string, required
- `clientId` string, required

## Response `200`

Successful operation

- Quotas — Quotas state for an api key on a service group
  - `authorizedCallsPerDay` integer, required — The number of authorized calls per day
  - `authorizedCallsPerMonth` integer, required — The number of authorized calls per month
  - `authorizedCallsPerSec` integer, required — The number of authorized calls per second
  - `currentCallsPerDay` integer, required — The current number of calls per day
  - `currentCallsPerMonth` integer, required — The current number of calls per month
  - `currentCallsPerSec` integer, required — The current number of calls per second
  - `remainingCallsPerDay` integer, required — The remaining number of calls per day
  - `remainingCallsPerMonth` integer, required — The number of authorized calls per month
  - `remainingCallsPerSec` integer, required — The remaining number of calls per second

## Other responses

- `400` — Bad resource format. Take another look to the swagger, or open an issue :)
- `401` — You have to provide an Api Key. Api Key can be passed with 'Otoroshi-Client-Id' and 'Otoroshi-Client-Secret' headers, or use basic http authentication
- `404` — Resource not found or does not exist

---

[API](https://skmtc.net/maif/apis/otoroshi.md) · [All operations](https://skmtc.net/maif/apis/otoroshi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maif/otoroshi/versions/276881687271/schema)
