# Limit Client requests on Machine to Machine flow

**URL:** <https://community.auth0.com/t/limit-client-requests-on-machine-to-machine-flow/104083>\
**Category:** Get Help\
**Tags:** oauth-2-0, protocols\
**Created:** [April 4, 2023, 9:50am UTC](https://community.auth0.com/t/limit-client-requests-on-machine-to-machine-flow/104083 "2023-04-04T09:50:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![niall](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@niall](https://community.auth0.com/u/niall)\
**Post date:** [April 4, 2023, 9:50am UTC](https://community.auth0.com/t/limit-client-requests-on-machine-to-machine-flow/104083/1 "2023-04-04T09:50:48Z")

</div>

Customer is looking to limit the number of token requests on a client by client basis. The intention is to ensure no single client can consume the rate limit for a particular api.

I can’t see any options to limit from the UI. I can see that M2M does trigger the Login flow, so I have options in Actions.  
[https://auth0.com/docs/customize/actions/flows-and-triggers/machine-to-machine-flow](https://auth0.com/docs/customize/actions/flows-and-triggers/machine-to-machine-flow)

This post talks to monitoring global endpoint usage.  
[https://community.auth0.com/t/how-to-tell-if-you-are-approaching-the-rate-limit/82103](https://community.auth0.com/t/how-to-tell-if-you-are-approaching-the-rate-limit/82103)

What I don’t have is an approach to introducing a per client limit. Any thoughts here would be appreciated.

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [April 4, 2023, 3:49pm UTC](https://community.auth0.com/t/limit-client-requests-on-machine-to-machine-flow/104083/2 "2023-04-04T15:49:13Z")

</div>

Hi Niall,

So whilst there’s currently no specific product configurable limitations that can be applied to Auth0 M2M token allocations, we do have some guidance which we’ve developed for our customers that can help in a number of different scenarios (see attached). Hope this helps 🕶  
[Optimizing External M2M Token Reuse.pdf](https://community.auth0.com/uploads/short-url/mnOmdWKwQzwCxr7qprijgmS3qKU.pdf) (301.0 KB)

---

<div class="post-metadata">

**Author:** ![niall](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@niall](https://community.auth0.com/u/niall)\
**Post date:** [April 4, 2023, 3:50pm UTC](https://community.auth0.com/t/limit-client-requests-on-machine-to-machine-flow/104083/3 "2023-04-04T15:50:47Z")

</div>

Hi Peter. Thanks for the response. I’ll review the document and report back once I’ve had a chance to digest it.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 18, 2023, 3:51pm UTC](https://community.auth0.com/t/limit-client-requests-on-machine-to-machine-flow/104083/4 "2023-04-18T15:51:13Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
