# M2M Token limit not being updated in quota utilization

**URL:** <https://community.auth0.com/t/m2m-token-limit-not-being-updated-in-quota-utilization/119805>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [October 30, 2023, 8:51pm UTC](https://community.auth0.com/t/m2m-token-limit-not-being-updated-in-quota-utilization/119805 "2023-10-30T20:51:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhay](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/abhay/32/50443_2.png) [@abhay](https://community.auth0.com/u/abhay)\
**Post date:** [October 30, 2023, 8:51pm UTC](https://community.auth0.com/t/m2m-token-limit-not-being-updated-in-quota-utilization/119805/1 "2023-10-30T20:51:06Z")

</div>

We are currently testing out using auth0 m2m tokens and testing caching to authenticate and authorize our internal application traffic. To do so I created a service in our dev tenant, and an application along with claims. I also wrote up a quick script to request a token a day to be updated. So far I’ve requested over 10 tokens and the m2m quota limit has not been updated. It only says that I’ve used “1”. I’ve also waited for over 48 hours. I understand that token requests for auth0 internal api’s do not count but the audience I am requesting for is my own application.

A sample request as in the starter guide:

```auto
access_token=$(curl --request POST \
  --url https://<tenant>.auth0.com/oauth/token \
  --header 'content-type: application/json' \
  --data "{\"client_id\":\"$client_id\",\"client_secret\":\"$client_secret\",\"audience\":\"<my-internal-audience>\",\"grant_type\":\"client_credentials\"}")

```

1. Is there a longer expected time for the m2m token quota usage to be updated?
2. If the application and api both belong to the same tenant, does it not count towards token limits, or is there something else that I am missing (Like auth0 is caching tokens on my behalf)?
3. Is there a metric I can request to monitor/alarm on for m2m token limit usage?

Thanks!

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 31, 2023, 5:41pm UTC](https://community.auth0.com/t/m2m-token-limit-not-being-updated-in-quota-utilization/119805/3 "2023-10-31T17:41:35Z")

</div>

Hi @abhay,

Welcome to the Auth0 Community!

> [@abhay](#):
>
> 1. Is there a longer expected time for the m2m token quota usage to be updated?

In general the M2M Token quota utilization updates every 24 hours. If you do not see any changes within that time window, please open a support ticket on [support.auth0.com](http://support.auth0.com) asking for assistance.

> [@abhay](#):
>
> 1. If the application and api both belong to the same tenant, does it not count towards token limits, or is there something else that I am missing (Like auth0 is caching tokens on my behalf)?

It should count towards your token limits if you request for a new token each time.

> [@abhay](#):
>
> 1. Is there a metric I can request to monitor/alarm on for m2m token limit usage?

I recommend checking the [Auth0 Support Page](https://support.auth0.com/) for the most up-to-date information regarding your quota utilization.

Thanks,  
Rueben

---

<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:** [November 14, 2023, 5:42pm UTC](https://community.auth0.com/t/m2m-token-limit-not-being-updated-in-quota-utilization/119805/4 "2023-11-14T17:42:25Z")

</div>

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