Skip to content
HALOWERK

Codewerk

http rate limit window replay

Return admitted requests and retry delays under a supplied fixed or sliding quota window. Local data only.

POST https://code.halowerk.com/v1/http-rate-limit-window-replay

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
timestamps_msarrayYes
window_msintegerYes
limitintegerYes
modeSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "timestamps_ms": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000000
      },
      "maxItems": 100,
      "minItems": 1
    },
    "window_ms": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000000
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "mode": {
      "enum": [
        "fixed",
        "sliding"
      ]
    }
  },
  "required": [
    "timestamps_ms",
    "window_ms",
    "limit",
    "mode"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "timestamps_ms": [
    0,
    1,
    2,
    10
  ],
  "window_ms": 10,
  "limit": 2,
  "mode": "sliding"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’