Tether Docs

Rate Limits

Details on rate limiting policies for HTTP endpoints and the WebSocket gateway.


Info

All HTTP endpoints are rate limited per IP address to ensure fair usage and prevent abuse.

Limit TypeValue
Requests per second10
Burst capacity10
Exceeding behaviorHTTP 429 (Too Many Requests)

Rate Limit Headers

When rate limited, the response includes these headers:

HeaderDescription
Retry-AfterSeconds to wait before retrying
X-RateLimit-LimitMaximum requests per second
X-RateLimit-RemainingRemaining requests (0 when limited)
X-RateLimit-ResetUnix timestamp when limit resets

Example: Rate Limited Response

HTTP/1.1 429 Too Many Requests
Content-Type: application/json
Retry-After: 1
X-RateLimit-Limit: 10
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1703123456

{
  "success": false,
  "error": {
    "code": "RATE_LIMITED",
    "message": "Too Many Requests",
    "status": 429,
    "retryable": true,
    "details": null
  }
}

WebSocket Gateway

Note

The WebSocket gateway does not have explicit rate limits, but requires proper heartbeat timing. Connections that miss heartbeats will be closed.

Implementation Details

  • Rate limiting uses a token bucket algorithm.
  • Per-IP limiters are cleaned up after 3 minutes of inactivity.

Last updated:

On this page