Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.8 KB

v2ratelimit.md

File metadata and controls

21 lines (16 loc) · 1.8 KB

V2Ratelimit

Example Usage

import { V2Ratelimit } from "@unkey/api/models/components";

let value: V2Ratelimit = {
  name: "<value>",
  limit: 590340,
  duration: 928936,
};

Fields

Field Type Required Description
name string ✔️ The name of this limit. You will need to use this again when verifying a key.
limit number ✔️ How many requests may pass within a given window before requests are rejected.
duration number ✔️ The duration for each ratelimit window in milliseconds.