# How do I let a user make an API token so that my website can be accessed by a programme?

**URL:** <https://community.auth0.com/t/how-do-i-let-a-user-make-an-api-token-so-that-my-website-can-be-accessed-by-a-programme/91714>\
**Category:** Get Help\
**Created:** [October 3, 2022, 5:02pm UTC](https://community.auth0.com/t/how-do-i-let-a-user-make-an-api-token-so-that-my-website-can-be-accessed-by-a-programme/91714 "2022-10-03T17:02:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jameswbush](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jameswbush/32/40361_2.png) [@jameswbush](https://community.auth0.com/u/jameswbush)\
**Post date:** [October 3, 2022, 5:02pm UTC](https://community.auth0.com/t/how-do-i-let-a-user-make-an-api-token-so-that-my-website-can-be-accessed-by-a-programme/91714/1 "2022-10-03T17:02:54Z")

</div>

As a developer, I can create an API Token by connecting to different websites. This lets me use code to call the website instead of using it as a user.

How can I give this API access to my website that uses Auth0 in the best way? Tenant editors (Settings \> Tenant Members \> Add Member as “Editor - Users”) should be able to create a token for programmatic access just like they can create a user and assign permissions.

Since that’s not a choice, what’s the best choice?

Thanks from [pubtv](https://howisland.com/how-to-get-pub-tv/)

---

<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:** [October 4, 2022, 1:20pm UTC](https://community.auth0.com/t/how-do-i-let-a-user-make-an-api-token-so-that-my-website-can-be-accessed-by-a-programme/91714/2 "2022-10-04T13:20:51Z")

</div>

Hi @jameswbush

I think you want the client credentials grant, also known as M2M:

> **[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.

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:** [October 18, 2022, 1:21pm UTC](https://community.auth0.com/t/how-do-i-let-a-user-make-an-api-token-so-that-my-website-can-be-accessed-by-a-programme/91714/3 "2022-10-18T13:21:13Z")

</div>

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