This endpoint is used to create a rate limiter for a specific project within an account.
The request body should be in JSON format and include the following parameters:
name (string): The name of the rate limiter.
action (string): The action to be taken when the rate limit is reached.
isActive (boolean): Indicates whether the rate limiter is active.
condition (object): An object containing the condition for the rate limiter, including fieldName, predicate, value, and type.
periodInSec (integer): The time period in seconds for the rate limiter.
limit (integer): The limit for the rate limiter.
200 with the id of the created rate limiter, as a bare JSON string.
Accepted permissions
Project → Project → Rate limiting rules → CreateToken scope
Project Action
Personal access token. Create it in your BotBye account under Profile → Personal Access Tokens, tick the scopes the endpoints you call require (see each endpoint’s Token scope), and send the token in the X-Api-Key request header. A token works only for the account it was created in.