# Preferred way to use M2M for multiple companies towards the same API

**URL:** <https://community.auth0.com/t/preferred-way-to-use-m2m-for-multiple-companies-towards-the-same-api/62200>\
**Category:** Get Help\
**Created:** [May 4, 2021, 2:15pm UTC](https://community.auth0.com/t/preferred-way-to-use-m2m-for-multiple-companies-towards-the-same-api/62200 "2021-05-04T14:15:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [May 4, 2021, 9:28pm UTC](https://community.auth0.com/t/preferred-way-to-use-m2m-for-multiple-companies-towards-the-same-api/62200/3 "2021-05-04T21:28:14Z")

</div>

Hi @nra,

Welcome to the Community!

The client credentials grant (using a seperate client ID and client secret for each customer) will likely be the best solution for this. Here is a topic that discusses it, and some of the limits on creating new applications. Feel free to ask questions if you have them. Do you know roughly how many customers/applications you plan on supporting?

> [@Allow third party access to API](https://community.auth0.com/t/allow-third-party-access-to-api/44253):
>
> Hi, I need to allow an access to API for 3rd party developers. For example: my Customer has an external e-shop and hires a Developer to make an integration (send e-shop orders to my API). Developer creates somewhere a background job, that connects to e-shop, fetch data and upload it to my API. As far as I understood OAuth schema, Developer should create an application, get ClientID & ClientSecret and use it with Client Credentials Flow or Resource Owner Password. However, without having Clie…

---

_[View the full topic](https://community.auth0.com/t/preferred-way-to-use-m2m-for-multiple-companies-towards-the-same-api/62200)._
