# Little help to link auth0 client with auth0 api

**URL:** <https://community.auth0.com/t/little-help-to-link-auth0-client-with-auth0-api/9210>\
**Category:** Get Help\
**Tags:** jwt, database\
**Created:** [January 16, 2018, 7:37am UTC](https://community.auth0.com/t/little-help-to-link-auth0-client-with-auth0-api/9210 "2018-01-16T07:37:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaltenf](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kaltenf](https://community.auth0.com/u/kaltenf)\
**Post date:** [January 16, 2018, 7:37am UTC](https://community.auth0.com/t/little-help-to-link-auth0-client-with-auth0-api/9210/1 "2018-01-16T07:37:59Z")

</div>

Hi Everyone,

I’ve done the maximum I can alone, I just need a bit of help to complete my system.

Here it what I have done :

- A website with a database linked to auth0. Users can register and login.
- A rest api, secured with a JWT token. I can generate a token from my auth0 api, and access API
- I’ve authorized my auth0 client to access the auth0 api that generate the token (tab Non Interactive Clients)

Now with a user email and password from the website, how can I get a valid token to access the api ?

The aim is I want to sell my api access, so I need my website users to generate their own JWT tokens.

I’m a bit confused in how to achieve this, even that I’m sure auth0 is the way to go.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![richard.dowinton](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/richard.dowinton/32/16150_2.png) [@richard.dowinton](https://community.auth0.com/u/richard.dowinton)\
**Post date:** [March 5, 2018, 1:06pm UTC](https://community.auth0.com/t/little-help-to-link-auth0-client-with-auth0-api/9210/2 "2018-03-05T13:06:57Z")

</div>

Assuming you have integrated Auth0 with your website, then it should simply be a matter of specifying the identifier of your [API configured in Auth0](https://auth0.com/docs/apis#how-to-configure-an-api-in-auth0) when requesting the access token.

The resulting token will contain an `aud` claim with the identifier as its value. You then pass the access token to any API requests you make and have your API backend [verify the token](https://auth0.com/docs/api-auth/tutorials/verify-access-token) and assert that the `aud` claim matches its identifier.

Please refer to the [articles on API authorization](https://auth0.com/docs/api-auth) for more details.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 11:04am UTC](https://community.auth0.com/t/little-help-to-link-auth0-client-with-auth0-api/9210/3 "2019-07-25T11:04:00Z")

</div>


