# Creating M2M token not returning scope

**URL:** <https://community.auth0.com/t/creating-m2m-token-not-returning-scope/86204>\
**Category:** Get Help\
**Created:** [June 29, 2022, 11:26pm UTC](https://community.auth0.com/t/creating-m2m-token-not-returning-scope/86204 "2022-06-29T23:26:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaeldavidbrant](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michaeldavidbrant/32/34150_2.png) [@michaeldavidbrant](https://community.auth0.com/u/michaeldavidbrant)\
**Post date:** [June 29, 2022, 11:26pm UTC](https://community.auth0.com/t/creating-m2m-token-not-returning-scope/86204/1 "2022-06-29T23:26:26Z")

</div>

I’m following this help article:

> **[Get Management API Access Tokens for Production](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-production)**
>
> Learn how to get Access Tokens to make scheduled frequent calls to the Management API.

It says the response should be something like:

```auto
{
  "access_token": "eyJ...Ggg",
  "expires_in": 86400,
  "scope": "read:clients create:clients read:client_keys",
  "token_type": "Bearer"
}

```

However, I’m getting: (no value for scope)

```auto
{
  "access_token": "eyJ...Ggg",
  "expires_in": 86400,
  "token_type": "Bearer"
}

```

And when I go to use the token, it doesn’t work. Do I need to specify scope in the request?

---

<div class="post-metadata">

**Author:** ![michaeldavidbrant](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michaeldavidbrant/32/34150_2.png) [@michaeldavidbrant](https://community.auth0.com/u/michaeldavidbrant)\
**Post date:** [June 30, 2022, 12:12am UTC](https://community.auth0.com/t/creating-m2m-token-not-returning-scope/86204/2 "2022-06-30T00:12:39Z")

</div>

The problem was I was using the wrong machine to machine (M2M) client ID and client secret.

I was using the one from the Applications \> Test Application when I should have been using the one from Applications \> API explorer.

---

<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 28, 2022, 9:42am UTC](https://community.auth0.com/t/creating-m2m-token-not-returning-scope/86204/3 "2022-07-28T09:42:31Z")

</div>

Thanks for sharing that with the rest of community!

---

<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 28, 2022, 9:42am UTC](https://community.auth0.com/t/creating-m2m-token-not-returning-scope/86204/4 "2022-07-28T09:42:33Z")

</div>


