OIDC authentication using OKTA with HashiCorp Vault

We are trying to setup OIDC authentication using OKTA with HashiCorp Vault and it works fine using the Web UI and I’m able to successfully login to the Vault and read secrets

Apparently, I would like to achieve this usecase using Vault API? Is that doable?