# Allow specific outside customers access to our API server with m2m machine to machine token

**URL:** <https://community.auth0.com/t/allow-specific-outside-customers-access-to-our-api-server-with-m2m-machine-to-machine-token/61219>\
**Category:** Get Help\
**Tags:** m2m, api, m2m-tokens\
**Created:** [April 16, 2021, 3:41am UTC](https://community.auth0.com/t/allow-specific-outside-customers-access-to-our-api-server-with-m2m-machine-to-machine-token/61219 "2021-04-16T03:41:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dak2009](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dak2009/32/44901_2.png) [@dak2009](https://community.auth0.com/u/dak2009)\
**Post date:** [April 16, 2021, 3:41am UTC](https://community.auth0.com/t/allow-specific-outside-customers-access-to-our-api-server-with-m2m-machine-to-machine-token/61219/1 "2021-04-16T03:41:31Z")

</div>

We are using machine to machine tokens to secure our internal application connects to our public API servers.

Now we want our external customers to be able to use their applications to connect to our public API using machine to machine tokens.

How do I begin to set this up? I’m really lost and I’m extremely worried that it cannot be done with Auth0.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 16, 2021, 8:42pm UTC](https://community.auth0.com/t/allow-specific-outside-customers-access-to-our-api-server-with-m2m-machine-to-machine-token/61219/3 "2021-04-16T20:42:25Z")

</div>

Hi @dak2009,

You can issue your customers client credentials they can use to obtain M2M tokens against your APIs. You will then have control over what scopes those applications are able to use.

> **[Client Credentials Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow)**
>
> Learn how the Client Credentials flow works and why you should use it for machine-to-machine (M2M) applications.

With that said, if you are planning on having a lot of customers, you could quickly run into [entity limits](https://auth0.com/docs/policies/entity-limit-policy) and might want to explore other solutions.

---

<div class="post-metadata">

**Author:** ![dak2009](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dak2009/32/44901_2.png) [@dak2009](https://community.auth0.com/u/dak2009)\
**Post date:** [April 17, 2021, 12:24am UTC](https://community.auth0.com/t/allow-specific-outside-customers-access-to-our-api-server-with-m2m-machine-to-machine-token/61219/4 "2021-04-17T00:24:35Z")

</div>

We would be looking, at the most, a dozen untrusted M2M applications. Looks like that could put us over the limit for our current plan. Good to know now. Thanks!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 19, 2021, 5:18pm UTC](https://community.auth0.com/t/allow-specific-outside-customers-access-to-our-api-server-with-m2m-machine-to-machine-token/61219/5 "2021-04-19T17:18:12Z")

</div>

No problem, let us know if you have other questions.

---

<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:** [May 4, 2021, 5:18pm UTC](https://community.auth0.com/t/allow-specific-outside-customers-access-to-our-api-server-with-m2m-machine-to-machine-token/61219/6 "2021-05-04T17:18:17Z")

</div>

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