Docs menu — REST API / Rate Limits & Quota Documentation

Getting Started

MCP Server

REST API

REST API Updated 2026-11-23

Rate Limits & Quota

To keep the platform stable and stop runaway Agent loops, SVGForge applies a Redis-backed (or cache-backed) fixed-window rate limiter to public icon endpoints and the Plugin / MCP API.

Dashboard Cookie routes, auth, webhooks, and health checks use separate point limits and are not part of this quota.

Rate limit breakdown

Dimension Guest (No Auth) Free Plan Pro Plan
Window Type Fixed 60-second Fixed 60-second Fixed 60-second
Per-Minute Limit 10 requests 60 requests 180 requests
Daily Quota (UTC) 100 requests 1,000 requests 10,000 requests
  • Guest — no Authorization header (IP-based).
  • Free / Pro — valid Bearer sf_… token; tier follows users.plan (pro / team → Pro). Multiple tokens for the same user share one quota.
  • Public GET /api/v1/icons/* and icon-sets upgrade to Free/Pro when a valid token is present.

Numbers are configurable on the server; the response shape below stays stable.

Covered endpoints

Surface Paths
Public icons /api/v1/icons/search, /api/v1/icons/:prefix/:icon, /api/v1/icons/metadata/:prefix, /api/v1/icon-sets
Plugin / MCP /api/v1/plugin/*

HTTP headers

Successful and 429 responses include:

HTTP
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 42
X-RateLimit-Reset: 1730467200
X-RateLimit-Tier: Free
X-RateLimit-Daily-Limit: 1000
X-RateLimit-Daily-Remaining: 812
Header Meaning
X-RateLimit-Limit Per-minute cap for the current tier
X-RateLimit-Remaining Remaining requests in the current minute window
X-RateLimit-Reset Unix timestamp when the minute window resets
X-RateLimit-Tier Guest, Free, or Pro
X-RateLimit-Daily-Limit UTC daily cap
X-RateLimit-Daily-Remaining Remaining requests today (UTC)

429 responses also send Retry-After (seconds).

Handling 429

JSON
{
  "code": 429,
  "msg": "Rate limit exceeded. Your Free tier allows up to 60 req/minute and 1,000 req/day. Upgrade to Pro for higher limits.",
  "data": {
    "retryAfter": 18,
    "tier": "Free",
    "limitType": "minute"
  }
}
Field Meaning
retryAfter Seconds to wait before retrying
tier Active tier label
limitType minute or day

Wait for retryAfter (or Retry-After) before retrying. MCP and plugins should back off; upgrading to Pro raises both caps.

See also