Official Documentation

https://developer.okta.com/docs/api/getting_started/getting_a_token