Refresh token example

Hi, I´m new in all these auth0 things.
I have an outdated token and want to call oauth/token but using refresh_token options.

Which headers should be added to the request? Also, which attributes should be listed in the body of the request?
I’ve been using just content-type for headers and next attributes for body:

  • client_id
  • client_secret
  • audience
  • grant_type
  • refresh_token
  • code

For now I have two paths that not sure which one should I follow:
if content-type uses application/json I received next message
image

On the other hand if content-type uses “application/x-www-form-urlencoded” next response is received
image

Another question, how could I get a proper value for code in body?
Thanks

Our team is answering some of our frequently asked questions.

Currently, the Auth0 Management API refresh token endpoints are only available to Enterprise plan customers. To learn more, visit our Pricing page.

Other methods for using tokens include token rotation and the SDK support for refresh tokens. See Refresh Tokens.

Hope this helps!