# Machine to Machine token limitation per app

**URL:** <https://community.auth0.com/t/machine-to-machine-token-limitation-per-app/86876>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [July 13, 2022, 7:14am UTC](https://community.auth0.com/t/machine-to-machine-token-limitation-per-app/86876 "2022-07-13T07:14:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rihards.kenigs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rihards.kenigs/32/13599_2.png) [@rihards.kenigs](https://community.auth0.com/u/rihards.kenigs)\
**Post date:** [July 13, 2022, 7:14am UTC](https://community.auth0.com/t/machine-to-machine-token-limitation-per-app/86876/1 "2022-07-13T07:14:45Z")

</div>

Hi,  
is there a way to limit applications to not consume more than X amount of access tokens per day?  
Let’s say I have an App that is getting 200 Machine to Machine access tokens per day. I want to limit this app to not being able to get more than 20 tokens per day. Is this possible?

Best

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [July 13, 2022, 1:42pm UTC](https://community.auth0.com/t/machine-to-machine-token-limitation-per-app/86876/2 "2022-07-13T13:42:42Z")

</div>

Hi @rihards.kenigs

There is not a built-in way to achieve this. Do you have control over the app? If so, make sure it caches the access tokens and doesn’t just get a new one every time it needs.

If you don’t have control over the app, a proxy solution may be required - where the app asks for a token from the proxy, and the proxy either does caching or limiting or both.

John

---

<div class="post-metadata">

**Author:** ![rihards.kenigs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rihards.kenigs/32/13599_2.png) [@rihards.kenigs](https://community.auth0.com/u/rihards.kenigs)\
**Post date:** [July 13, 2022, 2:09pm UTC](https://community.auth0.com/t/machine-to-machine-token-limitation-per-app/86876/3 "2022-07-13T14:09:59Z")

</div>

Hi @john.gateley  
thank you for the quick response.  
We don’t have control over the app. But thanks for the advice.  
Best  
Riha

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 28, 2022, 9:43am UTC](https://community.auth0.com/t/machine-to-machine-token-limitation-per-app/86876/4 "2022-07-28T09:43:08Z")

</div>


