POST
/
v1
/
ratelimits.setOverride
curl --request POST \
  --url https://api.unkey.dev/v1/ratelimits.setOverride \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "namespaceId": "rlns_1234",
  "namespaceName": "email.outbound",
  "identifier": "user_123",
  "limit": 10,
  "duration": 60000,
  "async": false
}'
{
  "overrideId": "over_123"
}

Create or update an override to set specific limits for an identifier.

There is no update endpoint. Instead you should call this endpoint again to overwrite your override.

Changelog

DateChanges
Nov 25 2024Introduced endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Sucessfully created a ratelimit override

The response is of type object.