Cheikh Ahmadou
Kilo Sage

Never has done it before, but why not 

 

Scripted REST API + Custom Counter Table with 

  • Fields:

    • integration_id or api_key

    • date (type: Date)

    • counter (Integer)

     

  • In your Scripted REST API:

    Each time the 3rd-party calls your endpoint:

    • Check if there’s already an entry for today.

    • If yes and counter >= 2, reject the request (return HTTP 429 or custom message).

    • Otherwise, increment the counter and allow the request to proceed.

     

 

Reset Behavior

You’ll want to reset the counter daily. Since the date is stored as a separate field, each day a new record is created. You can also run a scheduled job to clean up old entries after 30 days.

 

 

View solution in original post