---
title: "public/getRateLimits"
method: POST
path: "/public/getRateLimits"
tags: ["System"]
---

# public/getRateLimits

`POST /public/getRateLimits`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/public/getRateLimits`
- Auth: none declared

Returns the caller's current remaining rate-limit allowances for the active connection, broken out into matching-request, non-matching-request, and per-endpoint buckets. On WebSocket connections it also includes the remaining connection allowance.

## Request body

- EmptyRequest: This method takes no parameters; send an empty object `{}`. Braced rather than a unit struct so schemars emits `{"type": "object"}`: a unit struct emits `null`, which contradicts the line above and forced every generated client to cast around the params type.

## Response `200`

Success

- RateLimitResult
  - `remaining_connections` RateLimitInfo, nullable
    - `consumedPoints` integer, required: Total consumed points.
    - `isFirstInDuration` boolean, required: Whether it's the first request in this duration window.
    - `msBeforeNext` integer, required: Milliseconds before the next request is allowed (0 if none).
    - `remainingPoints` integer, required: Number of remaining points (tokens).
  - `remaining_matching` RateLimitInfo, required
    - `consumedPoints` integer, required: Total consumed points.
    - `isFirstInDuration` boolean, required: Whether it's the first request in this duration window.
    - `msBeforeNext` integer, required: Milliseconds before the next request is allowed (0 if none).
    - `remainingPoints` integer, required: Number of remaining points (tokens).
  - `remaining_non_matching` RateLimitInfo, required
    - `consumedPoints` integer, required: Total consumed points.
    - `isFirstInDuration` boolean, required: Whether it's the first request in this duration window.
    - `msBeforeNext` integer, required: Milliseconds before the next request is allowed (0 if none).
    - `remainingPoints` integer, required: Number of remaining points (tokens).
  - `remaining_per_endpoint` object, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 1 info
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/getRateLimits/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
