Title: Getting API Token
Last modified: January 2, 2019

---

# Getting API Token

 *  Resolved [mmki](https://wordpress.org/support/users/mmki/)
 * (@mmki)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/getting-api-token/)
 * Hi,
 * In your documentation it is explained that Admin can get an API token with a 
   custom script every 24 hours (recommended for production environments) or get
   token with fixed expiration time using Auth0 dashboard (recommended for testing).
   
   Probably most wp users use the second solution.
 * Do you plan to improve getting tokens so it can be done automatically?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Josh C](https://wordpress.org/support/users/auth0josh/)
 * (@auth0josh)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/getting-api-token/#post-11045701)
 * [@mmki](https://wordpress.org/support/users/mmki/) – Yes, we’ve been replacing
   that manual requirement with a Client Credentials grant (the “automatic” token
   you’re talking about) in several places. At this point, anything that needs a
   continuous connection to the management API (user login, password changes, email
   changes [next version]) performs this automatically. Things that are not changed
   often, like Rules management (account linking, profile enhancement, etc), still
   rely on that manual token but will be removed in a future version in favor of
   specific documentation on how to make those changes directly in the dashboard.
 * Is there a specific action that you need a manual management token for? In handling
   the above, the API token field will eventually be removed so if you have a custom
   Management API scenario, it will necessary switch over to the new system. You
   only need to worry about that if you have any custom code running that uses the
   Management API.
 * Hope that helps!
 *  Thread Starter [mmki](https://wordpress.org/support/users/mmki/)
 * (@mmki)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/getting-api-token/#post-11047069)
 * Thank, you for the reply. I think that will suffice for me. Right now I need 
   it for email changes and account linking.
 *  [Josh C](https://wordpress.org/support/users/auth0josh/)
 * (@auth0josh)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/getting-api-token/#post-11049504)
 * Email changes make sense but account linking only needs the API token when you’re
   turning it on or off in wp-admin. Once the Rule is in place, the token is not
   required.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Getting API Token’ is closed to new replies.

 * ![](https://ps.w.org/auth0/assets/icon-256x256.png?rev=3351758)
 * [Login by Auth0](https://wordpress.org/plugins/auth0/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auth0/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auth0/)
 * [Active Topics](https://wordpress.org/support/plugin/auth0/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auth0/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auth0/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Josh C](https://wordpress.org/support/users/auth0josh/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/getting-api-token/#post-11049504)
 * Status: resolved