# Show rate limits

> The rate limits of this access, and how much of each is left.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: stable
- MCP tool: `manitu_access_rate_limit_get` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/access/rate-limit/get`
- Page: /reference/access/rate-limit/get/

## MCP tool

`manitu_access_rate_limit_get`

### Description for the model

Returns the rate limits of this access - how many calls it may make in which time, and how many of each are left until when. Changes nothing, and counts as a call itself. Call it when a call was refused with RATE_LIMITED, or before many calls in a row, to pace them instead of being refused.

### Arguments

Takes no arguments.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_access_rate_limit_get",
    "arguments": {}
  }
}
```

## REST

`POST https://api.manitu.de/v1/access/rate-limit/get`

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

No fields - send {} or no body.

### Response

In `data`; the rest of the body as on every call.

- `limit_list` (array of object, required) - Every rate limit of this access. A call is refused when one limit that counts it has nothing left.
  - `limit_list[].name` (string, required) - The limit, as RateLimit-Policy names it.
  - `limit_list[].limit` (integer, required) - Calls per window: the pace at which the limit refills, one call every window_seconds / limit seconds.
  - `limit_list[].window_seconds` (integer, required) - The window the pace is given in.
  - `limit_list[].burst` (integer, required) - Calls that may come at once when the limit is whole.
  - `limit_list[].remaining` (integer, required) - Calls that may come at once now.
  - `limit_list[].reset_seconds` (integer, required) - Seconds until the limit is whole again; 0 when it is.
  - `limit_list[].per` (string, required) - Whom the limit counts: this credential, the calling address, everybody together, or everybody who shares the attribute in per_attribute. (one of `"credential"`, `"ip"`, `"all"`, `"attribute"`)
  - `limit_list[].per_attribute` (string | null, required) - The attribute, where per is "attribute" - an account, say.
  - `limit_list[].applies_to` (object, required) - Which calls the limit counts; null in a field means every one.
    - `limit_list[].applies_to.facade` (array of string | null, required)
    - `limit_list[].applies_to.access_kind` (array of string | null, required)
    - `limit_list[].applies_to.operation` (array of string | null, required)
    - `limit_list[].applies_to.side_effect` (array of string | null, required)

### Statuses

- `200` Success.
- `400` The input is wrong, or the request itself (INVALID_INPUT). Each entry names its field and its reason - correct the input and call again.
- `401` No credential was presented, or it was not recognised (UNAUTHENTICATED).
- `403` The credential is valid, but may not do this (PERMISSION_DENIED). The reason says why - another credential is the way, not a repeat.
- `429` Too many calls. The Retry-After header says when to try again.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.

### Example

```sh
curl -X POST \
  'https://api.manitu.de/v1/access/rate-limit/get' \
  -H "X-API-Key: $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{}'
```

## Example result

```json
{
  "limit_list": [
    {
      "name": "example.com",
      "limit": 1,
      "window_seconds": 1,
      "burst": 1,
      "remaining": 1,
      "reset_seconds": 1,
      "per": "credential",
      "per_attribute": "string",
      "applies_to": {
        "facade": [
          "string"
        ],
        "access_kind": [
          "string"
        ],
        "operation": [
          "string"
        ],
        "side_effect": [
          "string"
        ]
      }
    }
  ]
}
```
