Set Override
POST /v2/ratelimit.setOverride
Create or update a custom rate limit for specific identifiers. Overrides take effect immediately and completely replace the default limit for matching identifiers. Use wildcard patterns (e.g.,premium_*) to match multiple identifiers.
Permissions: Requires ratelimit.*.set_override or ratelimit.<namespace_id>.set_override
Request Parameters
string
required
The namespace where this override applies.Example:
api.requestsstring
required
The identifier pattern to override. Supports wildcards (e.g.,
premium_*).Example: premium_user_123integer
required
The custom rate limit for this identifier.Example:
1000integer
required
The time window in milliseconds for the custom limit.Example:
60000Response
string
required
The unique identifier of the created or updated override.Example:
ovr_1234567890abcdefExample
cURL
Response
Get Override
POST /v2/ratelimit.getOverride
Retrieve the configuration of a specific rate limit override by its identifier. The identifier must match exactly as specified when creating the override, including wildcard patterns. Permissions: Requiresratelimit.*.read_override or ratelimit.<namespace_id>.read_override
Request Parameters
string
required
The namespace containing the override.Example:
api.requestsstring
required
The identifier to look up (must match exactly, including wildcards).Example:
premium_user_123Response
string
required
The unique identifier of the override.
string
required
The namespace ID where this override is configured.
string
required
The identifier pattern this override applies to.
integer
required
The custom rate limit.
integer
required
The time window in milliseconds.
Example
cURL
Response
List Overrides
POST /v2/ratelimit.listOverrides
Retrieve a paginated list of all rate limit overrides in a namespace. Use this to audit rate limiting policies, build admin dashboards, or manage override configurations. Permissions: Requiresratelimit.*.read_override or ratelimit.<namespace_id>.read_override
Request Parameters
string
required
The namespace to list overrides from.Example:
api.requestsinteger
Maximum number of overrides to return per request.Example:
20string
Pagination cursor from previous response.
Response
array
required
Array of override objects, each containing:
overrideId- Unique override identifieridentifier- The identifier patternlimit- Custom rate limitduration- Time window in milliseconds
string
Pagination cursor for fetching the next page (null if no more results).
Example
cURL
Response
Delete Override
POST /v2/ratelimit.deleteOverride
Permanently remove a rate limit override. Affected identifiers immediately revert to the namespace default. Deletion is immediate and permanent - the override cannot be recovered and must be recreated if needed again. Permissions: Requiresratelimit.*.delete_override or ratelimit.<namespace_id>.delete_override
Request Parameters
string
required
The namespace containing the override.Example:
api.requestsstring
required
The identifier of the override to delete.Example:
premium_user_123Response
Returns an empty data object on successful deletion.Example
cURL
Response
Common Error Codes
400- Bad request (invalid parameters)401- Unauthorized (missing or invalid root key)403- Forbidden (insufficient permissions)404- Not found (namespace or override not found)429- Too many requests (rate limit exceeded)500- Internal server error