# I offer service as an API. Do I have to create an application for each user?

**URL:** <https://community.auth0.com/t/i-offer-service-as-an-api-do-i-have-to-create-an-application-for-each-user/48529>\
**Category:** Get Help\
**Tags:** m2m, api\
**Created:** [August 23, 2020, 10:37pm UTC](https://community.auth0.com/t/i-offer-service-as-an-api-do-i-have-to-create-an-application-for-each-user/48529 "2020-08-23T22:37:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fnfilho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fnfilho/32/23756_2.png) [@fnfilho](https://community.auth0.com/u/fnfilho)\
**Post date:** [August 23, 2020, 10:37pm UTC](https://community.auth0.com/t/i-offer-service-as-an-api-do-i-have-to-create-an-application-for-each-user/48529/1 "2020-08-23T22:37:53Z")

</div>

Hey there,

I’m just starting to use Auth0 and I am stuck on how this would work.

We offer services that are 100% an API. We don’t have any kind of front-end services, not even a login screen. After someone signs up, we would create credentials they could call our API (usually in a BI or their own services)

If I understood correctly, I would have to create a single Application for each customer. Is my understanding right?

---

<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:** [August 24, 2020, 2:51pm UTC](https://community.auth0.com/t/i-offer-service-as-an-api-do-i-have-to-create-an-application-for-each-user/48529/2 "2020-08-24T14:51:34Z")

</div>

Hi @fnfilho

If there is no UI at all, it sounds like you would be using client credentials for clients to access your API, and then yes, you would need one application per customer.

If you shared applications between multiple customers, then disabling one customer would disable all customers that shared that application.

John

---

<div class="post-metadata">

**Author:** ![fnfilho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fnfilho/32/23756_2.png) [@fnfilho](https://community.auth0.com/u/fnfilho)\
**Post date:** [August 25, 2020, 7:29pm UTC](https://community.auth0.com/t/i-offer-service-as-an-api-do-i-have-to-create-an-application-for-each-user/48529/3 "2020-08-25T19:29:48Z")

</div>

Thanks John!

A follow-up question please, how can I make authorization on my end this way?

On the examples seen here [Auth0 Node (Express) API SDK Quickstarts: Authorization](https://auth0.com/docs/quickstart/backend/nodejs), I can check scopes before allowing call to an endpoint, but I can’t restrict access to application-only data (let’s say, an application could create records, but only see the records it created).

Should I add custom fields to an application in Auth0 with my internal ID? How can I add this information to the access token?

Thanks!

---

<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:** [August 26, 2020, 2:03pm UTC](https://community.auth0.com/t/i-offer-service-as-an-api-do-i-have-to-create-an-application-for-each-user/48529/4 "2020-08-26T14:03:31Z")

</div>

Hi @fnfilho

I think what you are looking for is the client credentials hook. This is a hook that runs when the client credentials hook is executed.

Using this hook you can add custom claims to the access token.

John

---

<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:** [September 10, 2020, 2:03pm UTC](https://community.auth0.com/t/i-offer-service-as-an-api-do-i-have-to-create-an-application-for-each-user/48529/5 "2020-09-10T14:03:39Z")

</div>

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