See api-docs Menu

Work with OAuth 2.0 Tokens, Users, and Roles

This sample code illustrates how to make calls to the OAuth 2.0 Tokens API using Python. As a part of the sample use case, this code also illustrates how to use a generated OAuth 2.0 access token to make calls to the Users API and Roles API using Python.

If you’re using the Generate Tokens v2 API or Refresh Tokens v2 API, replace the oauth_endpoint value in the sample with /auth/oauth2/v2


Have a Question?

Have a how-to question? Seeing a weird error? Ask us about it on StackOverflow.

Found a bug? Submit a support ticket.

Have a product idea or request? Share it with us in our Ideas Portal.