← Back to directory

Shared token-bucket rate limiter for several agents calling the same API: take t...

https://denk.halowerk.com/v1/shared-rate-limiter

Overview

Shared token-bucket rate limiter for several agents calling the same API: take tokens and get allowed/denied with retry-after. Namespaced token buckets with capacity and refill rate defined by the caller. "take" removes n tokens if available and otherwise returns the exact retry-after time; "peek" shows the current level; "reset" refills the bucket. Bucket state is computed lazily from timestamps, so no background job is needed.

Protocol x402 (POST)
Price $0.0020
Payment Asset USD Coin
Payment Network eip155:8453
Category crypto/defi
Provider denk
Source bazaar
Indexed 2026-11-24 12:33:17

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "action": "take", "bucket": "openai", "capacity": 60, "namespace": "my-agents", "refill_per_second": 1, "secret": "a-long-random-secret-123" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": { "allowed": true, "capacity": 60, "remaining": 59, "retry_after_seconds": 0 }, "service": "shared-rate-limiter", "status": "success" }, "type": "json" }