---
title: "Mark an API key as rate-limited"
method: POST
path: "/api/keys/report-rate-limit"
tags: ["API Keys"]
---

# Mark an API key as rate-limited

`POST /api/keys/report-rate-limit`

## Request body

- object
  - `keyType` string, required
  - `keySuffix` string, required
  - `keyIndex` integer, required
  - `rateLimitedUntil` string, date-time, required
  - `scope` string
  - `scopeId` string

## Response `200`

Key marked as rate-limited

## Other responses

- `400` — Validation error
- `401` — Unauthorized

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
