Loading...
Loading...
API Gateway
Dynamic rate limiting and access control that adapts to agent trust scores. Higher trust equals higher limits.
Capabilities
Gate API access based on agent DRD trust scores. Agents below threshold are automatically blocked.
Rate limits automatically scale with trust scores. Trusted agents get higher throughput, untrusted get throttled.
Define routes with method, path, target service, and per-route rate limiting strategies.
Choose from fixed window, sliding window, token bucket, or trust-weighted rate limiting per route.
Real-time access logs with status codes, latency, trust scores, and rate limit status for every request.
Visualize traffic patterns, rate limit hits, trust score distributions, and latency percentiles.
Getting Started
Define API routes with target services, HTTP methods, trust score thresholds, and rate limit strategies.
Configure minimum trust scores for each route. Higher-value endpoints can require higher trust levels.
Watch real-time access logs, track rate limit usage, and analyze trust score impact on traffic flow.
Developer Integration
import { DRD } from '@drd/sdk';
const drd = new DRD({ token: 'drd_live_sk_...' });
// Create a trust-weighted route
await drd.gateway.createRoute({
path: '/api/data/query',
method: 'POST',
targetService: 'https://data-service.internal',
rateLimitStrategy: 'trust_weighted',
trustScoreThreshold: 60,
});
// Check rate limits
const limits = await drd.gateway.getRateLimits({
routeId: 'route_abc123',
});Dynamic rate limits based on trust. Higher trust agents get more access. Zero trust gets zero access.