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
The namespace where this override applies.Example:
api.requestsThe identifier pattern to override. Supports wildcards (e.g.,
premium_*).Example: premium_user_123The custom rate limit for this identifier.Example:
1000The time window in milliseconds for the custom limit.Example:
60000Response
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
The namespace containing the override.Example:
api.requestsThe identifier to look up (must match exactly, including wildcards).Example:
premium_user_123Response
The unique identifier of the override.
The namespace ID where this override is configured.
The identifier pattern this override applies to.
The custom rate limit.
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
The namespace to list overrides from.Example:
api.requestsMaximum number of overrides to return per request.Example:
20Pagination cursor from previous response.
Response
Array of override objects, each containing:
overrideId- Unique override identifieridentifier- The identifier patternlimit- Custom rate limitduration- Time window in milliseconds
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
The namespace containing the override.Example:
api.requestsThe 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