Skip to main content
GET
/
api
/
rate-limits
/
effective
/
{client_id}
Get Effective Rate Limit
curl --request GET \
  --url https://api.example.com/api/rate-limits/effective/{client_id}
{
  "source": "<string>",
  "client_id": "<string>",
  "allowed_limit": 123,
  "window_seconds": 123,
  "config_id": 123
}

Authentication

Supports both Firebase and API Key authentication.

Path Parameters

client_id
string
required
The client identifier (e.g., client_abc123)

Example Request

curl https://api.sari-platform.com/api/rate-limits/effective/client_abc123 \
  -H "X-Client-ID: client_abc123" \
  -H "X-API-Key: <api_key>"

Response

source
string
Where the limit comes from: override, tier, or none
client_id
string
Client identifier
allowed_limit
integer
Maximum requests per window
window_seconds
integer
Time window in seconds
config_id
integer
Override ID (if source is override)

Example Response (Override)

{
  "source": "override",
  "client_id": "client_abc123",
  "allowed_limit": 5000,
  "window_seconds": 3600,
  "config_id": 1
}

Example Response (Tier)

{
  "source": "tier",
  "client_id": "client_abc123",
  "allowed_limit": 1000,
  "window_seconds": 3600,
  "config_id": null
}

Example Response (No Config)

{
  "source": "none",
  "client_id": "client_abc123",
  "allowed_limit": null,
  "window_seconds": null,
  "config_id": null
}

Resolution Order

  1. Override - Client-specific override (if active)
  2. Tier - Default tier configuration (if active)
  3. None - No rate limit configured

Errors

StatusDescription
401Invalid authentication