# Management API throwing Unauthorized: Invalid Token error when attempting to create Password Change Ticket

**URL:** <https://community.auth0.com/t/management-api-throwing-unauthorized-invalid-token-error-when-attempting-to-create-password-change-ticket/111449>\
**Category:** Get Help\
**Tags:** emails, management-api\
**Created:** [July 17, 2023, 8:30pm UTC](https://community.auth0.com/t/management-api-throwing-unauthorized-invalid-token-error-when-attempting-to-create-password-change-ticket/111449 "2023-07-17T20:30:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gparascandolo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gparascandolo/32/38788_2.png) [@gparascandolo](https://community.auth0.com/u/gparascandolo)\
**Post date:** [July 17, 2023, 9:05pm UTC](https://community.auth0.com/t/management-api-throwing-unauthorized-invalid-token-error-when-attempting-to-create-password-change-ticket/111449/5 "2023-07-17T21:05:44Z")

</div>

Glad you got the access\_token error figured out @slcredentialmanager!

There is an Auth0 FAQ post [here](https://community.auth0.com/t/caching-management-api-access-tokens-in-login-action/95855) that shows how to generate access tokens using the clientId, clientSecret, and domain in an Auth0 Action, and how to cache it for future requests.

Hope this helps 🤞

---

_[View the full topic](https://community.auth0.com/t/management-api-throwing-unauthorized-invalid-token-error-when-attempting-to-create-password-change-ticket/111449)._
