Unauthorized for get data all users with api management

I try get data all users with api management with function getAll … I get jwt via API Explorer and expiration of this jwt is 86400 seconds (1 day )… Now when I try use this function I get this errror :

resulted in a `401 Unauthorized` response:
{"statusCode":401,"error":"Unauthorized","message":"Expired token received for JSON Web Token validation","attributes":{ (truncated...)

My question is how to takes token automatically in each use API or when token is expired I get other token automatically

thanks for advanced

:wave: @med001 there are some good steps on how to generate a token automatically for the management API here Management API Access Tokens. Can you give it a try and let us know if you have any issues?

1 Like

@kimcodes yes this is solution … thank you so much

1 Like

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