# Which grant type for a none interactive client when id token is required

**URL:** <https://community.auth0.com/t/which-grant-type-for-a-none-interactive-client-when-id-token-is-required/7423>\
**Category:** Get Help\
**Tags:** grant-types\
**Created:** [July 7, 2017, 9:26pm UTC](https://community.auth0.com/t/which-grant-type-for-a-none-interactive-client-when-id-token-is-required/7423 "2017-07-07T21:26:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick.brunmayr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrick.brunmayr/32/7785_2.png) [@patrick.brunmayr](https://community.auth0.com/u/patrick.brunmayr)\
**Post date:** [July 7, 2017, 9:26pm UTC](https://community.auth0.com/t/which-grant-type-for-a-none-interactive-client-when-id-token-is-required/7423/1 "2017-07-07T21:26:39Z")

</div>

Hello  
I’ve setup a basic web application and can get an id token for it. Now i have some set of API’s ( none interactive clients ) which communicate which each other. Each API is a different client. The API’s must be able to use the token they got from the web application. Which grant type do i have to use so the API’s can use the id token because the API’s dont’t do some kind of interaction?

---

<div class="post-metadata">

**Author:** ![patrick.brunmayr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrick.brunmayr/32/7785_2.png) [@patrick.brunmayr](https://community.auth0.com/u/patrick.brunmayr)\
**Post date:** [July 7, 2017, 9:36pm UTC](https://community.auth0.com/t/which-grant-type-for-a-none-interactive-client-when-id-token-is-required/7423/2 "2017-07-07T21:36:14Z")

</div>

Or does an API only validate the JWT tokens they got in the Authorization header ?

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [July 10, 2017, 6:53am UTC](https://community.auth0.com/t/which-grant-type-for-a-none-interactive-client-when-id-token-is-required/7423/3 "2017-07-10T06:53:12Z")

</div>

APIs should be passed the `access_token`, not the `id_token`, in the Authorization Header. Your APIs will need to be configured correctly in Auth0, as well as setup to validate the `access_token`. I suggest reading through the following docs which outline the API Authorization features:

> **[Authentication and Authorization Flows](https://auth0.com/docs/get-started/authentication-and-authorization-flow)**
>
> Learn about the various flows used for authentication and authorization of applications and APIs.

---

<div class="post-metadata">

**Author:** ![patrick.brunmayr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrick.brunmayr/32/7785_2.png) [@patrick.brunmayr](https://community.auth0.com/u/patrick.brunmayr)\
**Post date:** [July 10, 2017, 2:54pm UTC](https://community.auth0.com/t/which-grant-type-for-a-none-interactive-client-when-id-token-is-required/7423/4 "2017-07-10T14:54:06Z")

</div>

Thx  
But how does my API know about the identity who called it ?

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/which-grant-type-for-a-none-interactive-client-when-id-token-is-required/7423/5 "2018-03-02T05:55:13Z")

</div>


