How to obtain service account API Token through API calls

Solution Verified - Updated -


  • Could I retrieve the authentication token of a ServiceAccount through REST API calls?
  • Could I have a curl command to obtain the same result that the oc sa get-token <serviceAccount> command?


  • OpenShift Container Platform 3.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content