# Does/oauth/token API calls count toward Machine to Machien tokens?

**URL:** <https://community.auth0.com/t/does-oauth-token-api-calls-count-toward-machine-to-machien-tokens/36642>\
**Category:** Get Help\
**Created:** [January 21, 2020, 5:34am UTC](https://community.auth0.com/t/does-oauth-token-api-calls-count-toward-machine-to-machien-tokens/36642 "2020-01-21T05:34:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuma-guy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kuma-guy/32/18535_2.png) [@kuma-guy](https://community.auth0.com/u/kuma-guy)\
**Post date:** [January 21, 2020, 5:34am UTC](https://community.auth0.com/t/does-oauth-token-api-calls-count-toward-machine-to-machien-tokens/36642/1 "2020-01-21T05:34:37Z")

</div>

Hi, We want to authenticate the user and issue a token to the user by using the Auth0 API (/oauth/token) on the server side. In that case, is it counted as issuing one token with Machine to Machine tokens?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [January 21, 2020, 1:53pm UTC](https://community.auth0.com/t/does-oauth-token-api-calls-count-toward-machine-to-machien-tokens/36642/2 "2020-01-21T13:53:26Z")

</div>

That endpoint may be used as part of very distinct flows, but **if the flow involves an end-user** which would mean you would be using that endpoint to exchange authorization code, refresh tokens or user credentials for tokens **then this would not count for machine to machine quota**.

What counts for the M2M quota would be a **client credentials** exchange ([Client Credentials Flow](https://auth0.com/docs/flows/concepts/client-credentials)) performed through that endpoint and for which an access token **for a custom API you defined in the APIs section** is issued.

The above means that for example, even if you do a client credentials to get an access token for the Auth0 Management API **this would still not count for M2M quota** as the Management API is considered an internal API.

---

<div class="post-metadata">

**Author:** ![kuma-guy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kuma-guy/32/18535_2.png) [@kuma-guy](https://community.auth0.com/u/kuma-guy)\
**Post date:** [January 25, 2020, 12:35pm UTC](https://community.auth0.com/t/does-oauth-token-api-calls-count-toward-machine-to-machien-tokens/36642/3 "2020-01-25T12:35:09Z")

</div>

@jmangelo Thank you very much!

---

<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:** [February 9, 2020, 12:35pm UTC](https://community.auth0.com/t/does-oauth-token-api-calls-count-toward-machine-to-machien-tokens/36642/4 "2020-02-09T12:35:10Z")

</div>

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